I have a search and report DataPage that I would like to show the difference between two dates in days. The start day will be new Date(), and the end date a time field in a table. Below is an outline of the code. Is there an easy way to do this?
Thank You.
var StartDate = new Date();
var EndDate = document.getElementById("InsertRecordpatient_status_change_timestamp").value;
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
perland
Hello,
I have a search and report DataPage that I would like to show the difference between two dates in days. The start day will be new Date(), and the end date a time field in a table. Below is an outline of the code. Is there an easy way to do this?
Thank You.
var StartDate = new Date();
var EndDate = document.getElementById("InsertRecordpatient_status_change_timestamp").value;
Var NumberDays = StartDate-EndDate
document.write(NumberDays);
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.