Fields getting filled with current date time is not required in most of the cases. Added not undefined check for value before formatting
Fields getting filled with current date time is not required in most of the cases. Added not undefined check for value before formatting

beenote/angular-material-datetimepicker,logbon72/angular-material-datetimepicker,beenote/angular-material-datetimepicker,logbon72/angular-material-datetimepicker