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:
  1. <html><body><h2>This page demonstrates how we can manipulate dates, times, and timestamps using the RPG extension</h2><h3>Playing with dates</h3>    
  2.         Current Date is : 2011-03-23<br></br>
  3.         Job Date is : 2011-03-21<br></br>
  4.         today is : 2011-03-23<br></br>
  5.         yesterday is : 2011-03-22<br></br>
  6.         last week is : 2011-03-16<br></br>
  7.  
  8.         next week is : 2011-03-30<br></br>
  9.         The month of next week is : 3<br></br>
  10.         The month of next month is : 4<br></br>
  11.         The next year derived is : 2012<br></br><h3>Playing with times</h3>    
  12.         Current Time is : 08:32:12<br></br>
  13.         1 hour ago was : 07:32:12<br></br>
  14.  
  15.         10 minutes ago was: 08:22:12<br></br>
  16.         In 2 hours it will be : 10:32:12<br></br>
  17.         In 30 seconds it will be : 08:32:42<br></br><h3>Formatting the current date in various character formats</h3>
  18.         As *ISO     : 2011-03-23<br></br>
  19.         As *EUR     : 23.03.2011<br></br>
  20.         As *USA     : 03/23/2011<br></br>
  21.  
  22.         As *JIS     : 2011-03-23<br></br>
  23.         As *LONGJUL : 2011/082<br></br>
  24.         As *CYMD    : 111/03/23<br></br>
  25.         As *CDMY    : 123/03/11<br></br>
  26.         As *CMDY    : 103/23/11<br></br>
  27.         As *YMD     : 11/03/23<br></br>
  28.  
  29.         As *DMY     : 23/03/11<br></br>
  30.         As *MDY     : 03/23/11<br></br>
  31.         As *JUL     : 11/082<br></br><h3>Formatting the current date in various numeric formats</h3>
  32.         As *ISO0     : 20110323<br></br>
  33.         As *EUR0     : 23032011<br></br>
  34.         As *USA0     : 03232011<br></br>
  35.  
  36.         As *JIS0     : 20110323<br></br>
  37.         As *LONGJUL0 : 2011082<br></br>
  38.         As *CYMD0    : 1110323<br></br>
  39.         As *CDMY0    : 1230311<br></br>
  40.         As *CMDY0    : 1032311<br></br>
  41.         As *YMD0     : 110323<br></br>
  42.  
  43.         As *DMY0     : 230311<br></br>
  44.         As *MDY0     : 032311<br></br>
  45.         As *JUL0     : 11082<br></br><h3>Formatting the current date using patterns</h3>
  46.         As ZD Mmmmmmmmmz YYYY    : 23 March 2011<br></br>
  47.         As ZD WWW Mmmmmmmmmz YYYY    : 23 WED March 2011<br></br>
  48.         As ZD Www Mmmmmmmmmz YYYY    : 23 Wed March 2011<br></br>
  49.  
  50.         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>
  51.         Converting from ZD Mmmmmmmmmz YYYY to Www ZDth Mmmmmmmmmz YYYY     : Thu 18th November 2010<h3>Converting using no date (defaults to today)</h3>
  52.         Today as ZD Www Mmmmmmmmmz YYYY    : 23 Wed March 2011<br></br><h3>Formatting the current time in various character formats</h3>
  53.         As *ISO     : 08.32.12<br></br>
  54.         As *EUR     : 08.32.12<br></br>
  55.  
  56.         As *USA     : 08:32 AM<br></br>
  57.         As *JIS     : 08:32:12<br></br>
  58.         As *HMS     : 08:32:12<br></br><h3>Formatting the current time in various numeric formats</h3>
  59.         As *ISO0    : 083212<br></br>
  60.         As *EUR0    : 083212<br></br>
  61.         As *JIS0    : 083212<br></br>
  62.  
  63.         As *HMS0    : 083212<br></br><h3>Formatting the current date and translating the separator from . to /</h3>
  64.         As *EUR      : 23/03/2011<br></br></body></html>
© 2004-2019 by midrange.com generated in 0.005s valid xhtml & css