Converting Date from Gregorian to Japanese Imperial Date in PS Query PeopleSoft

All,

Here’s a quick code snippet to convert a date in Gregorian format to Japanese Imperial Date format. The year alone would change, whereas the date and month would remain the same.

to_char(TO_DATE( A.BIRTHDATE,'YYYY/MM/DD'),'YYYY/MM/DD','NLS_CALENDAR=''Japanese Imperial''') 

You can use the same code as an Expression in your PeopleSoft PS Query and it would work wonders.

Have fun! 🙂

 

 

Advertisements

About Manikandan Surendren

A PeopleSoft Techno-functional Consultant. An engineering graduate in Computer Science. Technology Enthusiast. Movie freak. Gadget geek.
This entry was posted in Code, PeopleSoft, SQL. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s