How can i calculate the time between two date pickers, i’m currently using the date time picker from (dynarch)
The date times will look like so..
Txt2 = 01/07/2011 5:40:00 PM
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming your date part is in format mm/dd/yyyy, and you have your dates stored in the
txt1andtxt2vars, you should simply do:EDIT As you need in dd/mm/yyyy format, you can use the
Calendar.parseDate()function from the calendar api. So your code would be:Hope this helps. Cheers