Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old May 16th, 2008, 08:40 PM
Member
 
Join Date: Mar 2007
Posts: 48
Default Date Time

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.
Reply
  #2  
Old May 17th, 2008, 03:44 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 12,775
Default

Use the DateAdd function to add/subtract date/time.
Reply
  #3  
Old May 17th, 2008, 03:52 PM
Member
 
Join Date: Mar 2007
Posts: 48
Default

Quote:
Originally Posted by acoder
Use the DateAdd function to add/subtract date/time.
Awesome! Thanks a lot.
Reply
  #4  
Old May 17th, 2008, 04:05 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 12,775
Default

You're welcome.
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles