![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to compare the dates in shell script | vaji | Shell Programming and Scripting | 9 | 02-28-2007 12:34 AM |
| compare dates | ragha81 | Shell Programming and Scripting | 2 | 11-01-2006 06:17 PM |
| How to compare dates in C/C++ | naan | High Level Programming | 1 | 08-28-2006 10:03 AM |
| How to compare two dates | bankpro | High Level Programming | 5 | 01-24-2006 04:07 AM |
| compare two dates | wchen | Shell Programming and Scripting | 6 | 10-24-2002 04:39 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Read given article
Please read this article: You will able to find answer for your question.
FAQBasicUsage - Perl DateTime Wiki ~~~Thanks~~~ Sanjay Tripathi |
|
|||||
|
Quote:
Another alternative is to convert the dates to UNIX format (number of seconds elapsed since epoch) using time function, and then compare them. Check the documentation of time and localtime functions. |
|
||||
|
Quote:
GOT THE SOLUTION JUST REMOVE "/" FROM THE DATES AND "YYYYMMDD" IS NOW A SIMPLE NUMBER YOU CAN COMPARE IT WITH ANY OTHER NUMBER IN THAT FORMAT![]() ![]() |
![]() |
| Bookmarks |
| Tags |
| perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|