Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

date linux format yyyymmdd

# put current date as yyyy-mm-dd in $date
date=$(date '+%Y-%m-%d')

# put current date as yyyy-mm-dd HH:MM:SS in $date
date=$(date '+%Y-%m-%d %H:%M:%S')

# print current date directly
echo $(date '+%Y-%m-%d')
Comment

linux get date yyyymmdd

date '+%Y/%m/%d' #Output 2022/03/11
Comment

PREVIOUS NEXT
Code Example
Shell :: error: ‘thread’ is not a member of std 
Shell :: vboxmanage export vm to ova 
Shell :: why is gitlens not working on vscode 
Shell :: how to uninstall apps without admin password 
Shell :: preload for ubuntu 
Shell :: push a local branch 
Shell :: update fc editor 
Shell :: cmd stop process on port 
Shell :: install mocha 
Shell :: uninstall snap package ubuntu 
Shell :: get ram of ubuntu 
Shell :: free up ram in linux ubuntu 
Shell :: exit from sudo su 
Shell :: python pip upgrade 
Shell :: remove staged files git 
Shell :: how to I list powershell functions 
Shell :: how to install mypy 
Shell :: uninstall gitkraken in ubuntu 
Shell :: sudo apt-get install podman 
Shell :: E: Sub-process /usr/bin/dpkg returned an error code (1) 
Shell :: push git to github 
Shell :: git add commit in one command 
Shell :: cronjob run every hour 
Shell :: chrome ubuntu 
Shell :: install samba on raspberry pi 
Shell :: alpine sudo not found 
Shell :: cocoapods not installed 
Shell :: delete last commit from remote repo 
Shell :: typescript detect circular dependency 
Shell :: install mdx for nextjs 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =