|
Hi Tim, MyDate = %Date(*Date); //Returns Job-Date as Date MyDate = %Date(); //Returns System-Date as Date MyDateNum = %Int(%Char(%Date(): *ISO0)); //Returns 20050330 MyDateNum = %Dec(%Char(%Date(): *ISO0): 8: 0); //Returns 20050330 in Release V5R3M0 MyDateNum = %Dec(%Date(): *ISO)); Birgitta -----Ursprüngliche Nachricht----- Von: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]Im Auftrag von Hatzenbeler, Tim Gesendet: Mittwoch, 30. März 2005 21:03 An: 'RPG programming on the AS400 / iSeries' Betreff: %date is there a quick way to make %date give me the value that *date would return? I have a program that runs through a CGI job, and *date gives me the job date, but since the iseries is so stable, that date could be months off, between ipl's so... I would like to use %date... but I cant seem to make it give me the value = 3302005 i can get 2005-03-30 and the other formats, but I can't seem to strip out the delimiters... also, it says to retrieve the current date, leave it blank, but when I do, I can't set the date fmt code.. Any how, to wrap it up... I just need the current date in a numeric mmddyyyy format... Thanks, tim This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy the message. -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.