You need to sign in to do that
Don't have an account?
Ajith MD
Im getting error like Nan during subtraction of two times. Can anyone help me how to resolve this
Im getting error like Nan during subtraction of two times. Can anyone help me how to resolve this?
var startDate = component.get("v.time");
var endDate = component.get("v.time1");
var days = (endDate-startDate)/8.64;
alert(days);
please say me how to find difference between two times not two days
var startDate = component.get("v.time");
var endDate = component.get("v.time1");
var days = (endDate-startDate)/8.64;
alert(days);
please say me how to find difference between two times not two days
var endDate = component.get("v.time1");
alert('Start Date =>', startDate, '===', typeof startDate);
alert('endDate =>', endDate , '===', typeof endDate);
hey please try this and let me know what are the ouputs of start and end date.
alert('endDate =>', endDate , '===', typeof endDate);"