midrange.com code scratchpad |
Name:
Date and Time XML Result
|
Scriptlanguage:
Plain Text
|
Tabwidth:
4
|
Date:
03/22/2011 10:35:17 pm
|
IP:
Logged
|
|
Description:
Result from running Date and Time Template
|
Code:
- <html><body><h2>This page demonstrates how we can manipulate dates, times, and timestamps using the RPG extension</h2><h3>Playing with dates</h3>
- Current Date is : 2011-03-23<br></br>
- Job Date is : 2011-03-21<br></br>
- today is : 2011-03-23<br></br>
- yesterday is : 2011-03-22<br></br>
- last week is : 2011-03-16<br></br>
-
- next week is : 2011-03-30<br></br>
- The month of next week is : 3<br></br>
- The month of next month is : 4<br></br>
- The next year derived is : 2012<br></br><h3>Playing with times</h3>
- Current Time is : 08:32:12<br></br>
- 1 hour ago was : 07:32:12<br></br>
-
- 10 minutes ago was: 08:22:12<br></br>
- In 2 hours it will be : 10:32:12<br></br>
- In 30 seconds it will be : 08:32:42<br></br><h3>Formatting the current date in various character formats</h3>
- As *ISO : 2011-03-23<br></br>
- As *EUR : 23.03.2011<br></br>
- As *USA : 03/23/2011<br></br>
-
- As *JIS : 2011-03-23<br></br>
- As *LONGJUL : 2011/082<br></br>
- As *CYMD : 111/03/23<br></br>
- As *CDMY : 123/03/11<br></br>
- As *CMDY : 103/23/11<br></br>
- As *YMD : 11/03/23<br></br>
-
- As *DMY : 23/03/11<br></br>
- As *MDY : 03/23/11<br></br>
- As *JUL : 11/082<br></br><h3>Formatting the current date in various numeric formats</h3>
- As *ISO0 : 20110323<br></br>
- As *EUR0 : 23032011<br></br>
- As *USA0 : 03232011<br></br>
-
- As *JIS0 : 20110323<br></br>
- As *LONGJUL0 : 2011082<br></br>
- As *CYMD0 : 1110323<br></br>
- As *CDMY0 : 1230311<br></br>
- As *CMDY0 : 1032311<br></br>
- As *YMD0 : 110323<br></br>
-
- As *DMY0 : 230311<br></br>
- As *MDY0 : 032311<br></br>
- As *JUL0 : 11082<br></br><h3>Formatting the current date using patterns</h3>
- As ZD Mmmmmmmmmz YYYY : 23 March 2011<br></br>
- As ZD WWW Mmmmmmmmmz YYYY : 23 WED March 2011<br></br>
- As ZD Www Mmmmmmmmmz YYYY : 23 Wed March 2011<br></br>
-
- As ZD MMM YYYY : 23 MAR 2011<br></br><h3>Formatting a date by converting a string of the date in one format to the string in another format. The date is 18 November 2010.</h3>
- Converting from ZD Mmmmmmmmmz YYYY to Www ZDth Mmmmmmmmmz YYYY : Thu 18th November 2010<h3>Converting using no date (defaults to today)</h3>
- Today as ZD Www Mmmmmmmmmz YYYY : 23 Wed March 2011<br></br><h3>Formatting the current time in various character formats</h3>
- As *ISO : 08.32.12<br></br>
- As *EUR : 08.32.12<br></br>
-
- As *USA : 08:32 AM<br></br>
- As *JIS : 08:32:12<br></br>
- As *HMS : 08:32:12<br></br><h3>Formatting the current time in various numeric formats</h3>
- As *ISO0 : 083212<br></br>
- As *EUR0 : 083212<br></br>
- As *JIS0 : 083212<br></br>
-
- As *HMS0 : 083212<br></br><h3>Formatting the current date and translating the separator from . to /</h3>
- As *EUR : 23/03/2011<br></br></body></html>
|
|
|