Alias help needed

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.

http://www.foragoodstrftime.com/

1 Like

replace the inner ’ with double quotes
alias dt=‘date +"%m/%d/%Y %I:%M:%S %p"’

1 Like

Thanks gaddub and BrokenCanoe.

1 Like