473,503 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DB2 Dates and Ibatis

9 New Member
Hi I had a question about DB2 dates.

I am trying to understand how the flow works in a system.

Firstly date is stored in the database as a 21 character format an example is
"2008080814532500+0000" it seems to be of the form "yyyyddMMhhmm....".

The dates are stored with
Expand|Select|Wrap|Line Numbers
  1. INSERT INTO TABLE1(
  2. DATE_TO)
  3. VALUES(
  4. #dateTo:CHAR#)
  5.  
And its accessed using
Expand|Select|Wrap|Line Numbers
  1. <isNotNull property="StartDateTo" prepend="AND">
  2.       DATE_TO &lt;= #StartDateTo#
  3.     </isNotNull>
  4.  
Now the date is passed as a date object in the form of milli sec since epoch.

I am not able to understand how the comparison is taking place and all.

Can anyone explain this to me please.

Thank you very much.
Sep 16 '08 #1
2 2411
Nepomuk
3,112 Recognized Expert Specialist
Hi abehl!

Correct me if I'm wrong, but I can't see what this has to do with Java. If you've just posted it in the wrong place, just tell us where it should go and we'll move it there. If it IS something to do with Java, please go into more detail.

Greetings,
Nepomuk
Sep 16 '08 #2
abehl
9 New Member
The date object I talked about is a java date object.

I dont know where else the question would suit coz its not purely a database related question as well.
Sep 18 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
2123
by: PW | last post by:
<rant> Sorry guys, but I just have to whinge. Dates in ASP are a total pain in the butt! I seem to get caught out so many times. I realise its my own fault, but going from the posts in this...
10
3247
by: Colin Steadman | last post by:
I'm a stupid ASP programmer and I dont do Javascript (except for very simple tasks anyway), and I'm in a bit of a predicament. I've used a javascript table sorting script from here: ...
1
2114
by: Don Sealer | last post by:
I have a report that includes 5 different subreports. I'd like to be able to open this report using a date function (Start Date and End Date). I'd like all five subreports to show the data from...
2
3314
by: Rachel Suddeth | last post by:
Is there a way to have the non-selectable dates (those before MinDate and after MaxDate) draw differently so my users can see right away what dates aren't allowed? I'm not seeing it... ...
12
2412
by: Dixie | last post by:
I am trying to calculate the number of workdays between two dates with regards to holidays as well. I have used Arvin Meyer's code on the Access Web, but as I am in Australia and my date format is...
1
15547
by: pitfour.ferguson | last post by:
My dbase has the start date and end date of each visit. How can I ask Access to list the day of the week of the start (easy), end (easy) and, more importantly, the dates of the visit itself - ie...
7
2394
by: evilcowstare via AccessMonster.com | last post by:
Hi, I have searched the forum for answers on this and to be honest as a novice I find it a bit confusing so apologies if it is simple. There are some searches that I want to apply to my database....
2
2179
by: Jim Carlock | last post by:
(1) Does PHP provide any way to handle dates prior to 1980? I know there's problems with Microsoft Windows NT and all Windows NT operating systems will allow a date prior to 1980 to be placed...
0
1923
by: abehl | last post by:
Hi I am using DB2 with IBatis and I need to have a where clause which looks like WHERE UCASE(ps.DIAN_DESC) like UCASE(#prodCodeorName#) But UCASE(#prodCodeorName#) is giving an error. ...
0
7198
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
7319
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
6979
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
7449
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
5570
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,...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
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 ...

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.