ASP SQL Server 2000 Date/Time Formating
From: Chad S (webaccess_at_hotmail.com)
Date: 02/20/04
- Next message: Jeff Cochran: "Re: ASP SQL Server 2000 Date/Time Formating"
- Previous message: Jeff Cochran: "Looking for sample code and database schema"
- Next in thread: Jeff Cochran: "Re: ASP SQL Server 2000 Date/Time Formating"
- Reply: Jeff Cochran: "Re: ASP SQL Server 2000 Date/Time Formating"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 20 Feb 2004 09:48:51 -0800
Hello,
I have two questions which I would appreciate some help with.
1. Date Formating when Inserting into SQL Server 2000
I'm currently passing YYYYMMDD into a datetime field. When I look at
the database it is in the format MM/DD/YYYY. However, if the date is
20040303 it's inserted as 3/3/2004. How do I keep the zero's in the
date when inserting into the database ?
2. Time Formating when Inserting into SQL Server 2000
I'm trying to insert military time to a datetime field. Is there a way
to format this in the database ? I've only had success using hh:mm
AM/PM. I only want to use military time.
Thank you so much !
Chad
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- Next message: Jeff Cochran: "Re: ASP SQL Server 2000 Date/Time Formating"
- Previous message: Jeff Cochran: "Looking for sample code and database schema"
- Next in thread: Jeff Cochran: "Re: ASP SQL Server 2000 Date/Time Formating"
- Reply: Jeff Cochran: "Re: ASP SQL Server 2000 Date/Time Formating"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|