linux get year month day from datetime string code example Example: bash date date #displays date and time in terminal