Function dateToInputStr

Definition

dateToInputStr: (date: Date) => string

Comments

Returns a string that represents a date in the format used by the input element of type "date".

Returns

a string in the format YYYY-MM-DD

Function Parameters

NameDefinitionComments
dateDate

the Date object to format

Return Type

string