Q
Problem solve Get help with specific problems with your technologies, process and projects.

Using RPG/400 to convert a date in MMDDYY format to YYMMDD format

Is there an easy way in RPG/400 to convert a date in MMDDYY format to a date in YYMMDD format?


Using a 6-digit date field, multiply the date by 10000.01. To convert back to MMDDYY format, multiply by 100.0001.


 

Dig Deeper on iSeries CL programming

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close