Date manipulation using GNU date


GNU date command lets you do just about everything related to date and time but date manipulation is something not well documented.

# get date 2 weeks from now
date –date “now 2 week”

# 2 months earlier
date –date “now -2 month”

you can give any date in place of ‘now’ or use a variable.

# what day is it after 10 days?
date –date “now 10 day” +%A

about the author


  1. dresses

    November 28, 2012

    I guess, it comes down to 64368 simple choice!

  2. Sebastian Poirer

    July 5, 2013

    for those of us just getting started out, is there any chance of getting some on the letters mailed in the past?

  3. florida writing jobs

    September 12, 2013

    Nice Date manipulation using GNU date | Start IT up topic you posted about. It’s funny because me and my cousin were just talking about it the other day.