View previous topic :: View next topic
|
Author |
Message |
Mahua Mitra
New User
Joined: 26 Apr 2007 Posts: 49 Location: Delhi
|
|
|
|
Hi
Does there exists any routine to compare two dates?
Thanks |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
it depends on the date format/declaration
if the dates have the same format/same declaration
and the order is yyyy,mm,dd
then a straight comparison will be ok
if the format/declaration is different then You must convert to the same
format |
|
Back to top |
|
|
Mahua Mitra
New User
Joined: 26 Apr 2007 Posts: 49 Location: Delhi
|
|
|
|
Thanks |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Just a clarification,
when the date is a character string the separators ( if there ) must be the same
yyyy-mm-dd will be different from yyyy/mm/dd |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Mahua,
Most of the shops maintain inhouse DATE COMPARISION subroutine/tool. Speak with your peers, they might offer some help. |
|
Back to top |
|
|
|