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

  1. <!--- This example shows the various types of output
  2. possible with TimeFormat --->
  3.  
  4. <HTML>
  5.  
  6. <HEAD>
  7. <TITLE>
  8. TimeFormat Example
  9. </TITLE>
  10. </HEAD>
  11.  
  12. <CFSET todayDate = #Now()#>
  13. <BODY>
  14.  
  15. <H3>TimeFormat Example</H3>
  16.  
  17. <P>Today's date is <CFOUTPUT>#todayDate#</CFOUTPUT>.
  18.  
  19. <P>Using Timeformat, we can display that date/time value
  20. in a number of different ways:
  21. <CFOUTPUT>
  22. <UL>
  23.     <LI>#TimeFormat("#todayDate#")#
  24.     <LI>#TimeFormat("#todayDate#", 'hh:mm:ss')#
  25.     <LI>#TimeFormat("#todayDate#", 'hh:mm:sst')#
  26.     <LI>#TimeFormat("#todayDate#", 'hh:mm:sstt')#
  27.     <LI>#TimeFormat("#todayDate#", 'HH:mm:ss')#
  28. </UL>    
  29.     
  30. </CFOUTPUT>    
  31. </BODY>
  32.  
  33. </HTML>       
  34.