changed date parsing to allow date without hours and minutes