Hi, I need the first & last day of a month from any given date. For better understanding, if i need to back-fill data for date 07/20/2019 i.e July 20 2019, i need the first & last day has 07/01/2019 - 07/31/2019
. FYI: I'm using GIT BASH terminal.
sample code:
export DT=$(date --date='6 days ago' +%F)
-> is current date for which i have data for (i.e 2019-11-26
).
how do i use this DT var in order to get the first & last day of any month?
I appreciate your help for this task!!!