You need to sign in to do that
Don't have an account?
tina sharma 10
lightning:input type=datetime issue
I have a lightning:input as follows
<lightning:input type="datetime" aura:id ="dateTime" label="Follow Up Date And Time" name="date" onchange="{!c.checkDateTimeLength}" min="{!v.todayDate}"/>
In the doInit event, I am preventing the user to select PastDates , user shud select only current date and future dates.
component.set("v.todayDate",new Date());
But when I select today date its throwing an validation message as
"Value must be Dec 23, 2019 3:37:41 AM or later"
I do not require number of seconds in the date.
Please let me know how to avoid this with piece of working code.
thanks
Tina
<lightning:input type="datetime" aura:id ="dateTime" label="Follow Up Date And Time" name="date" onchange="{!c.checkDateTimeLength}" min="{!v.todayDate}"/>
In the doInit event, I am preventing the user to select PastDates , user shud select only current date and future dates.
component.set("v.todayDate",new Date());
But when I select today date its throwing an validation message as
"Value must be Dec 23, 2019 3:37:41 AM or later"
I do not require number of seconds in the date.
Please let me know how to avoid this with piece of working code.
thanks
Tina
Please use input type as Date istead of DateTime.