added support for parsing date and time