For Example:
StartTime = \'00:10\';
EndTIme = \'01:20\';
These variables are string
Question: How can I Subtract them and returning
dojo.date.difference is built for the task - just ask for a "minute" interval.
Get the difference in a specific unit of time (e.g., number of months, weeks, days, etc.) between two dates, rounded to the nearest integer.
Usage:
var foo: Number (integer)=dojo.date.difference(date1: Date, date2: Date?, interval: String?);