Added option to choose preferred date format (12 or 24 hours)