Only the date show with this ?
alias date_time='date +'%m/%d/%Y %I:%M:%S %p''
Only the date show with this ?
alias date_time='date +'%m/%d/%Y %I:%M:%S %p''
This site will show you which strftime codes you need, and how to assign them.
replace the inner ’ with double quotes
alias dt=‘date +"%m/%d/%Y %I:%M:%S %p"’
Thanks gaddub and BrokenCanoe.