Linux Script- Date Manipulations

前端 未结 5 663
[愿得一人]
[愿得一人] 2021-01-18 06:09

I will set one date variable(Say \'08-JUN-2011\') and I want to do some calculations based on that date namely,
1. Have to get the first day of the given day\'s month.

5条回答
  •  粉色の甜心
    2021-01-18 06:29

    $ date +%m/01/%Y
    

    I came here looking for a way to get the first day of the current month.

提交回复
热议问题