Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 April 27th, 2005, 05:13 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default Text box values are different

When I enter values say 09/08/2009 and when I hit save, it gets saved on the database as 09/08/2009. But on the client side the value is changed from 09/08/2009 to 9/8/2009. If I enter another value say 11/12/2008. It gets saved in the database same as 11/12/2008 also on the client side there is no change at this time. The value is 11/11/2008. So in short, 09/08/2009 is changed to 9/8/2009.Can any body explain this?

 
Old April 27th, 2005, 11:17 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

If you are using SQL Server, it does not save the leading 0s in a datetime column.
 
Old April 28th, 2005, 12:29 AM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 186
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I would have gone for some format expressions.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Grab Values From List Box into Text Box phungleon VB How-To 2 June 19th, 2008 10:33 PM
loop values and text box values move mateenmohd Classic ASP Basics 2 April 5th, 2005 11:33 PM
How to get values of a text box from one page to NitinJoshi General .NET 3 January 6th, 2005 06:30 AM
putting the values in the text box shoakat Classic ASP Databases 5 October 14th, 2004 02:37 PM
Getting text box values between forms? cdnamm BOOK: Professional C#, 2nd and 3rd Editions 1 August 13th, 2003 11:05 PM





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