Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 4th, 2007, 08:39 AM
Authorized User
 
Join Date: Jan 2007
Location: , , United Kingdom.
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default Date Issue

Hi,

On my local machine (development machine) when I store date in SQL Server, it stores incorrect value however once the project is upload on to the ISP server, it stores the correct date!

To store date I am usind Format(Date,"yyyy-MM-dd"). For 4 September 2007 it stores 09/04/2007 from the local machine, and 04/09/2007 when the project is uploaded.

I will really appreciate if anyone can help me out.

Best regards,

Tahir

 
Old September 4th, 2007, 08:56 AM
Friend of Wrox
 
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hi Tahir!!

Have u checked the date format of ur local system??


Cheers :)

vinod
 
Old September 4th, 2007, 08:59 AM
Authorized User
 
Join Date: Jan 2007
Location: , , United Kingdom.
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi vinod,

It is dd/MM/yyyy. What should it be?

Tahir

 
Old September 4th, 2007, 09:01 AM
Friend of Wrox
 
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

hope this link help you
http://support.microsoft.com/kb/173907
http://www.devnewsgroups.net/group/m...opic16289.aspx
http://www.mydatabasesupport.com/for...ql-server.html

Cheers :)

vinod
 
Old September 5th, 2007, 04:08 AM
Authorized User
 
Join Date: Jan 2007
Location: , , United Kingdom.
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi vinod,

Many thanks. These links were very helpful and resolved my problem.

Tahir





Similar Threads
Thread Thread Starter Forum Replies Last Post
Date Related Issue Kirti.darji Visual Studio 2005 0 May 13th, 2008 06:40 AM
Date conversion Issue dhay1999 Access 2 May 30th, 2007 06:47 AM
Date issue... Grafixx01 Access 16 April 24th, 2007 11:28 AM
Date function issue Grafixx01 Access 2 April 11th, 2007 02:32 PM
Date issue, using BETWEEN tdaustin Classic ASP Basics 2 June 8th, 2004 08:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.