dateFormat (and timeFormat too, I believe) delegate to datetime
formatting java classes, after running through some sanitization
filters. The filters remove any case ambiguity, so any 'm' or 'M'
passed to dateFormat will always mean month (and mean minute for
timeFormat). At the core, both functions are really formatting
datetime objects, there are just certain things you can't do with each
one where there are cases of that ambiguity.
cheers,
barneyb
On 7/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm curious why he's even getting a valid response for the HH and the ss in
> there. What in the heck do those represent from the date?
>
> By the way Charles, I use this little UDF constantly:
>
> <cfscript>
> function FormatDateTime(thedate) {
> return (DateFormat(thedate,"MM/DD/YYYY") & " " &
> TimeFormat(thedate,"hh:mm tt"));
> }
> </cfscript>
>
> Then I just use FormatDateTime(now()) whenever I need to show both.
>
> HTH.
>
> Dave
--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/
Got Gmail? I have 50 invites.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213020
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54