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.



  • How do I size a UPS unit?

    Your data center UPS sizing needs are dependent on a variety of factors. Develop configurations and determine the estimated UPS ...

  • How to enhance FTP server security

    If you still use FTP servers in your organization, use IP address whitelists, login restrictions and data encryption -- and just ...

  • 3 ways to approach cloud bursting

    With different cloud bursting techniques and tools from Amazon, Zerto, VMware and Oracle, admins can bolster cloud connections ...