parse date and hour