473,493 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Different Datetime delimiters gives me different date format

Here is what I get from CLP commands

db2 => VALUES date('20-12-2003')
SQL0181N The string representation of a datetime value is out of
range.
SQLSTATE=22007
db2 => VALUES date('20.12.2003')

1
----------
20.12.2003

1 record(s) selected.

db2 => VALUES date('20/12/2003')
SQL0181N The string representation of a datetime value is out of
range.
SQLSTATE=22007
I have ru_RU.CP1251 locale. How to get the same local format for each
date delimiter? In other words I want to get

VALUES date('20-12-2003') = 20-12-2003
VALUES date('20.12.2003') = 20.12.2003
VALUES date('20/12/2003') = 20/12/2003

Thanks in advance,
Tatiana
Nov 12 '05 #1
1 8388
Tatiana,

look for this article about date and times with ISO,DEF LOC etc.
http://www-106.ibm.com/developerwork.../0211yip3.html

regards,
Joachim Müller

"Tatiana Zadiraka" <ta*@aleksin.tula.net> schrieb im Newsbeitrag
news:86*************************@posting.google.co m...
Here is what I get from CLP commands

db2 => VALUES date('20-12-2003')
SQL0181N The string representation of a datetime value is out of
range.
SQLSTATE=22007
db2 => VALUES date('20.12.2003')

1
----------
20.12.2003

1 record(s) selected.

db2 => VALUES date('20/12/2003')
SQL0181N The string representation of a datetime value is out of
range.
SQLSTATE=22007
I have ru_RU.CP1251 locale. How to get the same local format for each
date delimiter? In other words I want to get

VALUES date('20-12-2003') = 20-12-2003
VALUES date('20.12.2003') = 20.12.2003
VALUES date('20/12/2003') = 20/12/2003

Thanks in advance,
Tatiana

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
464
by: Li Weng | last post by:
Hi, When I retrieve urn:schemas:httpmail:date field, how do I set the format from VB.net code? I assume I should have several DateTime formats to choose from. Or is there any VB.net class to...
2
5985
by: Kathy Burke | last post by:
Hi, I've read every post I could find but still no luck on why this won't work for me. I have an aspx page (U.S. default, VB, .Net 1.1), where I use the following two variables: Dim varStartTime...
26
2645
by: Reny J Joseph Thuthikattu | last post by:
Hi, I have a variabe in the format of 'DD-MON-YYYY HH:MI AM' .I want to add a miniute to it.How can i do that? by manipulation i want to make '01-JUNE-2004 11:59 PM' to '02-JUNE-2004 12:00 AM'...
9
4895
by: Phil B | last post by:
I am having a problem with a datetime from a web services provider The provider is sending the following SOAP response <?xml version="1.0" encoding="utf-8"?> <soap:Envelope...
4
21366
by: luckyabhishek | last post by:
Hi I am using a java webservice in a .NET application. The xml type of a field in this webservice is xsd:datetime. When i call the webservice from the application i get a deserialization error on...
2
2476
by: John A Grandy | last post by:
VS05 : GridView control config'd to use SPs in SS05 One of the SPs takes a vchar(50) which in the T-SQL needs to be converted to a DateTime. How should I have the GridView format the text the...
21
3335
by: Darin | last post by:
I have an applicatoin that works 100% perfect when running on a machine setup for English (United States), but when I change it to Spanish (Mexico), the dates start giving me fits. THe reason is...
5
19163
by: =?Utf-8?B?RmFlc3NsZXIgR2lsbGVz?= | last post by:
Hello, I'm facing a strange problem. We have an Asp.net 2.0 Web Application and somehow the date format is changing from one client to another even if all the code is running server-side... ...
3
2218
by: Matt Brown - identify | last post by:
Hello, I'm trying to figure out a method to look up by a range of dates, entries in a database. The format of the date in the database is "M\D \yyyy HH:MM:SS". What i need to do is take the...
0
7119
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7195
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6873
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7367
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5453
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4889
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1400
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
644
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.