This formats a date using the format patterns available in strftime. Uses machine timezone where applicable.
strftime