If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > difference between two dates

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-06-06, 20:37
raulcabrerar raulcabrerar is offline
Registered User
 
Join Date: May 2006
Posts: 8
difference between two dates

hi guys...

anyone help me with this...

I'm trying to get the number of day between a date and today, this must be pretty easy but I'm new in this....so will appreciate any help

thanks......
Reply With Quote
  #2 (permalink)  
Old 06-07-06, 03:00
nitin_math nitin_math is offline
Registered User
 
Join Date: Nov 2004
Posts: 143
Hi,

Try to alter the following as per your need:

select
date(current) ,created, day(date(current) - created) ,
("1/1/2000" - created),
(date(current) - created)
from systables where tabid =99


Hope it helps you.

Nitin
Reply With Quote
  #3 (permalink)  
Old 06-07-06, 11:08
raulcabrerar raulcabrerar is offline
Registered User
 
Join Date: May 2006
Posts: 8
hi nitin...

well let me tell that works perfectly !!! , I really thank you....

regards....
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On