Get day of the year for a specific date
Hi there
I would like to the day number of the year for a specific date. Process_date=`date +%d/%m/%Y` Then get the day of the year from $Process_date. The process date will not always be today's date. Thanks in advance. |
See if that helps:
http://www.unix.com/shell-programmin...ll-script.html |
Cool :)
Srted by .. Process_date=`date +%Y%m%d` date -d $Process_date +%j 352 Cheers |
Quote:
|
All times are GMT -5. The time now is 09:46 AM. |