Hi guys, I was doing some changes on my asp web pages, I added new field expiry date that will be scanned into the system in format ddmmyyyy but it can't save as i am gettting that message that char can't be converted into datetime as date time was out of range.
I have added this into my asp pages <% Session.LCID = 3081 %> and changed the sql server regional setting setting the date to dd/mm/yyyy I can't set it to ddmmyyyy as there is not option without "/".
Could somebody help me as this is quite frustrating.
ThanksBefore you INSERT the data, change the format. That's fairly easy to do if these are asp pages.
Showing posts with label ddmmyyyy. Show all posts
Showing posts with label ddmmyyyy. Show all posts
Wednesday, March 7, 2012
Date Format
Dear All,,
Date is entered on the table on the format of dd/mm/yyyy. When I see the
table I can see it in correct order ddmmyyyy. In the Query Analyzer, I see it
yyyymmdd. In addition the more seriouse proble is that when I right a
statement to choose an exact date or date interval, I have to enter the date
in format mmddyyyy otherwise the SQL will understand the date in wrong format.
Can any one help on that please.
*********
IT Manager
DeLaval Ltd.
Cairo-Egypt
*********
|--|
|Islam is peace not Terror|
|--|
Ibrahim,
See if the following article helps:
http://www.karaszi.com/sqlserver/info_datetime.asp
Anith
|||That site helps a lot, thanks!
>--Original Message--
>Ibrahim,
>See if the following article helps:
>http://www.karaszi.com/sqlserver/info_datetime.asp
>--
>Anith
>
>.
>
Date is entered on the table on the format of dd/mm/yyyy. When I see the
table I can see it in correct order ddmmyyyy. In the Query Analyzer, I see it
yyyymmdd. In addition the more seriouse proble is that when I right a
statement to choose an exact date or date interval, I have to enter the date
in format mmddyyyy otherwise the SQL will understand the date in wrong format.
Can any one help on that please.
*********
IT Manager
DeLaval Ltd.
Cairo-Egypt
*********
|--|
|Islam is peace not Terror|
|--|
Ibrahim,
See if the following article helps:
http://www.karaszi.com/sqlserver/info_datetime.asp
Anith
|||That site helps a lot, thanks!
>--Original Message--
>Ibrahim,
>See if the following article helps:
>http://www.karaszi.com/sqlserver/info_datetime.asp
>--
>Anith
>
>.
>
Subscribe to:
Posts (Atom)