Skip to Main Content

PeopleSoft Enterprise

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do i use journal date

Jalaj MehtaSep 13 2025
jdate = rec["JOURNAL_DATE"]

# Year folder from JOURNAL_DATE; fallback to 1901 if missing/unparseable
try:
    year = getattr(jdate, "year", None) or int(str(jdate)[:4])
except Exception:
    year = 1901
if not isinstance(year, int):
    year = 1901

jdate_str = jdate.strftime("%Y-%m-%d") if hasattr(jdate, "strftime") else str(jdate)
folder = os.path.join(output_dir, str(year), bu_, jid)  # out/<YEAR>/<BU>/<JOURNAL_ID>
ensure_dir(folder)
Comments
Post Details
Added on Sep 13 2025
0 comments
24 views