Create and update time fields
Utility function for parsing dates