Behavior for convertation DATE and DATETIME attributes to DateTime object and vise versa