Sep 3, 2012

Current Week Number in Linux

Sometimes we need to know the current Week number of the year, you need to open the calendar and see manually whats the week number. Instead you can just type some commands in your putty or linux machine which will let you know the current week details.
Week Number:
   date +%W
Current Year
 date +%Y
Current Date 
 date +%D

by the way, the current Week Number is 36.

No comments:

Post a Comment

Post a Comment

Note: Only a member of this blog may post a comment.