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.


 

This was last published in February 2001

Dig Deeper on iSeries CL programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close