Connecting Tech Pros Worldwide Help | Site Map

Date Time

Member
 
Join Date: Mar 2007
Posts: 48
#1: May 16 '08
Hi,

I have a Database (MSSQL) with some tables having multiple Time columns (which I imported from some Access DB).

The DateTime format in the MSSQL is
Expand|Select|Wrap|Line Numbers
  1. 1899-12-30 02:30:00.0
format. I populate my web forms using these columns (start time etc.) My problem is I cannot seem to add subtract time. I only need time part and I can use TimeFormat() function but I cannot seem to add time.

Can coldfusion deal with this format?

Thanks.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: May 17 '08

re: Date Time


Use the DateAdd function to add/subtract date/time.
Member
 
Join Date: Mar 2007
Posts: 48
#3: May 17 '08

re: Date Time


Quote:

Originally Posted by acoder

Use the DateAdd function to add/subtract date/time.

Awesome! Thanks a lot.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#4: May 17 '08

re: Date Time


You're welcome.
Reply