CFMX 6.1
MS SQL 2000
Date times are being reformatted or loosing something when stored in db and
brought back out to variables, i.e.,
{ts '2005-04-02 18:51:25'}is being changed to 2005-04-02 18:51:25
But not all datetimes. Some show up as the original {ts '2005-04-02 18:51:25'}
I use server variables, and capture many of the variables in a SQL database
in case of a server failure. When the server comes back on, info is read
from the DB and restored to the variables.
Here is the format that I used to capture the times
<cfset Eventcurrenttime = #DateConvert("local2utc", Now())#>
DB format is "datetime"
Any hints?
Nick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:201303
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