* Changed the date() function to return the user selected date format unless