More flexible date/time parsing