mat-datetimepicker
mat-datetimepicker copied to clipboard
show different labels when datetime
I have 2 input fields.

Both input fields are type="datetime". But the label from number 1 should be the label from date. The label from number 2 should be the label from time.
For example:
number 1:
input="datetime"
the label in input should be DD.MM.YYYY
number 2:
input="datetime"
the label in input should be HH:mm
Is there any way to make this?
You need the type to be "time" in order to use that format (HH:mm).
@sapabg I want to set the date and time in both fields but show only the date in the date field and only the time in the time field.
I think that no matter what you show in the field it will always return a Date() object when you submit it. The type property only defines what to be shown in the input. I'll try to do an example later.