Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Date conversion problems
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

sogoth
New Member

United Kingdom
73 Posts

Posted - 07 November 2001 :  05:32:26  Show Profile  Visit sogoth's Homepage
I know this has been asked by someone else (but before the server move), but I can't seem to find the thread with it on now, so my apologies..

I'm using <% date %> to fill in a form field with today's date, which it does correctly (dd/mm/yyyy), but as soon as it submits it to my SQL server it is flipped around into US format (mm/dd/yyyy).

Both the web server and the SQL server are set to UK date/region so I can't work out where the problem is occuring

help!!



Paul -
*bugger* said the fairy as it flew into a window

GauravBhabu
Advanced Member

4288 Posts

Posted - 07 November 2001 :  07:23:59  Show Profile
There is a discussion on this Topic, but that is related to these Forums. Since You have posted in Non Forum Related Section, I don't think that will help. However the link to the discussion is here


http://forum.snitz.com/forum/topic.asp?TOPIC_ID=14329

If there was some other discussion, I am not aware of that.

GauravBhabu
There is only one miracle...That is LIFE! | It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Go to Top of Page

sogoth
New Member

United Kingdom
73 Posts

Posted - 07 November 2001 :  09:51:18  Show Profile  Visit sogoth's Homepage
It was in the SQL Server help area about a month ago but I can't find it now.

I'm trawling through the thread you posted a link to, hopefully it'll come up with something useful...

ta

Paul -
*bugger* said the fairy as it flew into a window
Go to Top of Page

sogoth
New Member

United Kingdom
73 Posts

Posted - 07 November 2001 :  10:10:04  Show Profile  Visit sogoth's Homepage
I've just done some experimenting on the SQL server.

if I place a small file to output Now() on the IIs machine it comes out with the uk date format. If I run the same file on the SQL server it comes out in US date format, even though the actual server settings are for uk timezone and formats.

Where is the date format set on a server? I've checked Date/Time and Regional settings in control panel. Neither are incorrect... where else could it pick up the formatting from?

Paul -
*bugger* said the fairy as it flew into a window
Go to Top of Page

sogoth
New Member

United Kingdom
73 Posts

Posted - 08 November 2001 :  05:06:14  Show Profile  Visit sogoth's Homepage
Simple answer for today is to install a SQL server onto the IIS machine and transfer the databases across.



Paul -
*bugger* said the fairy as it flew into a window
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.08 seconds. Powered By: Snitz Forums 2000 Version 3.4.07