badge

Search Flipkart

Tuesday, April 2, 2013

get day of the week in linux for a specific date

and the command goes like
rahul $ date -d 20121212 "+%A" 
Wednesday

another 
rahul$ date -d 20121213 "+%A" 
Thursday


date is in YYYYMMDD form

No comments:

Post a Comment