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

-----Original Message-----
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 27, 2005 1:08 PM
To: CF-Talk
Subject: Re: Dateformat question


Because dateFormat doesn't format times, it formats dates, so you're
getting July (month 7), not the number of minutes off the hour.

cheers,
barneyb

On 7/27/05, Charles Heizer <[EMAIL PROTECTED]> wrote:
> Hello,
> Can someone please tell me why the time is not correct if I use DateFormat;
> for some reason it's off by 47 minutes.
> 
> Thanks,
> - Charles
> 
> Example...
> 
> #DateFormat(Now(), "DD-MM-YYYY HH:MM:ss")# = 27-07-2005 09:07:47
> #DateFormat(Now(),"DD-MM-YYYY")# #TimeFormat(Now(),"HH:mm:ss")# = 27-07-2005
> 09:54:47
> 


-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213019
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to