added comments to date time field logic
formatting