Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash get todays date formatted

TODAY=$(date +'%Y%m%d')
# looks like: 20221025 / YYYYMMDD

TODAY=$(date +'%Y-%m-%d')
# looks like: 2022-10-25 / YYYY-MM-DD

# For more, google "bash get date format"
Comment

bash get current date

# syntax
$(date)

# example (when running the command of "date")
echo $(date)

# OUTPUT: Mon May 11 13:20:57 SAST 2020
# To return a specific FORMAT, search "bash get date format"
Comment

PREVIOUS NEXT
Code Example
Shell :: ionic cordova live reload 
Shell :: device manager windows 10 run 
Shell :: linux memory usage 
Shell :: bash combine commands 
Shell :: upgrade php 8 ubuntu 20.04 
Shell :: how to uninstall iredmail 
Shell :: install cubecoders amp 
Shell :: git push origin master --force 
Shell :: cv2.error: OpenCV(4.5.4) D 
Shell :: save log git hub 
Shell :: shell for file in directory 
Shell :: install material ui lab 
Shell :: anydesk install ubtunu 
Shell :: ffmpeg increase volume 
Shell :: rrors were encountered while processing: /var/cache/apt/archives/libpython3.10-stdlib_3.10.4-1+focal2_amd64.deb 
Shell :: kill all ports mac 
Shell :: cancel merging 
Shell :: how to change time zone in ubuntu 18.04 server 
Shell :: git bypass hook 
Shell :: Updating SpaceVim Manually 
Shell :: git revert to commit hash 
Shell :: gpg generate key 
Shell :: pip install upgrade all 
Shell :: cmd windows download file 
Shell :: git rebase fork 
Shell :: angular 
Shell :: node upgrade mac os x 
Shell :: pip uninstall all packages 
Shell :: install @angular/core 
Shell :: pip install apache beam 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =