Correct, 24 hour time is from 00:00 to 23:59 (or 00:00:00 to 23:59:59), so hours can never be 24 (just like minutes and seconds can never be 60). To display 24 hour time as AM and PM use TimeFormat() with the appropriate formatting.
--- Ben -----Original Message----- From: Phillip B [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 5:46 PM To: CF-Talk Subject: Re: createdatetime(??) I think it needs to be from 0 to 23 for the hour. Phillip Broussard Tracker Marine Group 417-873-5957 ----- Original Message ----- From: "Brook Davies" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, August 02, 2002 4:55 PM Subject: RE: createdatetime(??) > The quotes work okay, with any combination other than "24" as the > hour. As soon as I put 24 in, it fails. > > > At 10:31 PM 02/08/02 +0100, you wrote: > >Try taking out the quotes, I don't think you need them. 12am is > >midday, 12pm > >is 24:00....... > > > >I think :O) > > > >Ade > > > >-----Original Message----- > >From: Brook Davies [mailto:[EMAIL PROTECTED]] > >Sent: 02 August 2002 22:40 > >To: CF-Talk > >Subject: createdatetime(??) > > > > > >When using the createdatetime() function, the format must use a 24 > >hour clock right? > > > >I'm a wee bit confused, how do you show 12am and 12pm. Isn't 12AM > >24:00 hours?? I get an error when trying to create a 12AM time like > >this: > > > >#createdatetime("2002","8","2","24","00","00")# > > > >Any idea why? I'm sure I'm missing something obvious... > > > >Brook > > > > > > > > > ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

