Apr 29, 2000 #1 mako Programmer Apr 6, 2000 11 MY hi! i could use some help here. how do you display time in 12 hour format (with AM and PM) in coldfusion?
hi! i could use some help here. how do you display time in 12 hour format (with AM and PM) in coldfusion?
Apr 29, 2000 1 #2 webron Programmer Apr 16, 2000 47 NL <CFSET todayDate=#Now()#><br><CFOUTPUT>#todayDate#</CFOUTPUT><br><P><br><CFOUTPUT><br><UL><br> <LI>#TimeFormat(todayDate)#<br> <LI>#TimeFormat(todayDate, "hh:mm:ss"#<br> <LI>#TimeFormat(todayDate, "hh:mm:sst"#<br> <LI>#TimeFormat(todayDate, "hh:mm:sstt"#<br> <LI>#TimeFormat(todayDate, "HH:mm:ss"#<br></UL><br></CFOUTPUT><br><br>result is something like this:<br>{ts '2000-04-29 18:44:39'}<br><br>06:44 PM <br>06:44:39 <br>06:44:39P <br>06:44:39PM <br>18:44:39 <br><br>Check the cfdocs<br>Webron Upvote 0 Downvote
<CFSET todayDate=#Now()#><br><CFOUTPUT>#todayDate#</CFOUTPUT><br><P><br><CFOUTPUT><br><UL><br> <LI>#TimeFormat(todayDate)#<br> <LI>#TimeFormat(todayDate, "hh:mm:ss"#<br> <LI>#TimeFormat(todayDate, "hh:mm:sst"#<br> <LI>#TimeFormat(todayDate, "hh:mm:sstt"#<br> <LI>#TimeFormat(todayDate, "HH:mm:ss"#<br></UL><br></CFOUTPUT><br><br>result is something like this:<br>{ts '2000-04-29 18:44:39'}<br><br>06:44 PM <br>06:44:39 <br>06:44:39P <br>06:44:39PM <br>18:44:39 <br><br>Check the cfdocs<br>Webron