Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date manipulation

Status
Not open for further replies.

ujrao

Programmer
Joined
May 18, 2000
Messages
1
Location
US
Urgent <br><br>Date manupulation. I have date in format 'MMDDYYYY' I<br>want to add 365 days. How can it be done. Can i use any<br>date functions. Please let me know.<br><br>Thanks in advance.<br><br>U.J.Rao
 
First, reverse the date format to YYYYMMDD<br>Next, use FUNCTION INTEGER-OF-DATE to convert the date to an integer.<br>Add 365.<br>Use FUNCTION DATE-OF-INTEGER to convert it back to a YYYYMMDD field.<br>Reverse the date format to MMDDYYYY and you are done!
 
Thank's Thane.<br><br>I had solved the problem the way you explained. I got the<br>correct answer. <br>Thank you once again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top