managing date format as datetime