Fixed error in date format when saving/uploading form data