Utilities to deal with parsing date and time