Home Linux Bash
Date formating

date +"%D %T "
date +"%Y%m%d-%T"
date +"%Y/%m/%d-%H:%M:%S"
date +%Y%m%d%H%M%S


Convert a date to seconds since epoc

date -d yyyy/mm/dd +%s


Convert seconds since epoc to date

date --date @<#seconds>