May 29, 2004 #1 RajShekar Programmer May 27, 2004 14 US How to compare 2 dates of yyyymmdd format in a if statement? I am trying to compare two dates in a If condition like this and it does not work? if (( "$PROC_DATE" < "$MONTHS_DATE" )) then print "$MONTHS_DATE" fi
How to compare 2 dates of yyyymmdd format in a if statement? I am trying to compare two dates in a If condition like this and it does not work? if (( "$PROC_DATE" < "$MONTHS_DATE" )) then print "$MONTHS_DATE" fi
May 29, 2004 #2 PHV MIS Nov 8, 2002 53,708 FR Something like this ? [ "$PROC_DATE" -lt "$MONTHS_DATE" ] && print "$MONTHS_DATE" Hope This Help, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
Something like this ? [ "$PROC_DATE" -lt "$MONTHS_DATE" ] && print "$MONTHS_DATE" Hope This Help, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244