Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash date yesterday format

echo $(date --date=' 1 days ago' '+%Y-%d-%m')
Comment

bash date yesterday format

#You can get the yesterday date by this:
date -d "yesterday 13:00 " '+%Y-%m-%d'

#and day before yesterday by this:-
date -d "yesterday-1 13:00 " '+%Y-%m-%d'
Comment

PREVIOUS NEXT
Code Example
Shell :: ifconfig command not found 
Shell :: show mongodb version 
Shell :: restart httpd centos 
Shell :: inkscape ubuntu ppa 
Shell :: ubuntu stop process on port 
Shell :: how to install cordova 
Shell :: install cmake anaconda 
Shell :: install networkx python 
Shell :: how to make new user linux termil 
Shell :: git remove all tags from remote 
Shell :: netstat listening port 8080 mac 
Shell :: upgrade pytorch version 
Shell :: pygame not installing in ubuntu 20.04 
Shell :: how to remove go in ubuntu 
Shell :: CAPACITOR_ANDROID_STUDIO_PATH 
Shell :: surge install command 
Shell :: reverse an array in bash scripting 
Shell :: linux download youtube mp3 
Shell :: check compatible ubuntu nvidia driver 18.04 
Shell :: git revert one commit 
Shell :: powershell foreach line in file read line 
Shell :: brew install npm 
Shell :: tqdm install 
Shell :: git log from selected branch 
Shell :: heroku cli deploy 
Shell :: docker post installation steps linux 
Shell :: install onenote in ubuntu 
Shell :: git clone --recurse-submodules 
Shell :: powershell keep skype active 
Shell :: source.list kali linux 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =