datetime format

Please support our MS SQL advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2006
Posts: 2
Reputation: mattjpoole is an unknown quantity at this point 
Solved Threads: 0
mattjpoole mattjpoole is offline Offline
Newbie Poster

datetime format

 
0
  #1
Jan 16th, 2006
Hi,

I've had a website built for me using asp and mssql. Im getting errors relating to the date format in queries being submitted.

The asp is trying to insert dates in format dd/mm/yyyy, but after testing my mssql server is expecting the dates in format yyyy/mm/dd.

Is there a way of making this work (Without going through all the code and fomatting the dates to something my sql server can accept) i.e. is there someway of configuring my sql server to accept dates in the format?

Thanks for any help you can give me.

Matt
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 483
Reputation: campkev is an unknown quantity at this point 
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: datetime format

 
0
  #2
Jan 18th, 2006
sql will accept dates in either yyyy/mm/dd or mm/dd/yyyy but not dd/mm/yyyy unless you use the set dateformat at the beginning of each query. Which seems like as much work as going through your code. I would recommend fixing your code to use one of the two normal date formats instead of the odd one you are using
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 2
Reputation: mattjpoole is an unknown quantity at this point 
Solved Threads: 0
mattjpoole mattjpoole is offline Offline
Newbie Poster

Re: datetime format

 
0
  #3
Jan 19th, 2006
Thanks.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC