Added formatDateAuto which automatically determines date format based on whether it's today etc