home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / dateformat.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  762 b   |  36 lines

  1. <!--- This example shows the various types of output
  2. possible with dateFormat --->
  3.  
  4. <HTML>
  5.  
  6. <HEAD>
  7. <TITLE>
  8. DateFormat Example
  9. </TITLE>
  10. </HEAD>
  11.  
  12. <CFSET todayDate = #Now()#>
  13. <BODY>
  14.  
  15. <H3>DateFormat Example</H3>
  16.  
  17. <P>Today's date is <CFOUTPUT>#todayDate#</CFOUTPUT>.
  18.  
  19. <P>Using dateformat, we can display that date in a number of 
  20. different ways:
  21. <CFOUTPUT>
  22. <UL>
  23.     <LI>#DateFormat("#todayDate#")#
  24.     <LI>#DateFormat("#todayDate#", "mmm-dd-yyyy")#
  25.     <LI>#DateFormat("#todayDate#", "mmmm d, yyyy")#
  26.     <LI>#DateFormat("#todayDate#", "mm/dd/yyyy")#
  27.     <LI>#DateFormat("#todayDate#", "d-mmm-yyyy")#    
  28.     <LI>#DateFormat("#todayDate#", "ddd, mmmm dd, yyyy")#    
  29.     <LI>#DateFormat("#todayDate#", "d/m/yy")#
  30. </UL>    
  31.     
  32. </CFOUTPUT>    
  33. </BODY>
  34.  
  35. </HTML>       
  36.