Through the form i am getting two values like
Start datetime = \'01/12/2013 12:00:00 AM\' and End datetime = \'02/12/2013 12:00:00 AM\'.
use the date object
Date1 = new Date('01/12/2013 12:00:00 AM'); Date2 = new Date('02/12/2013 12:00:00 AM'); Date1-Date2//in millisecond