Date/time Related Js Function
February 5th, 2010
I need a simple JS that will calculate some times and dates.
It will have date input (you can use a simple ready datepicker control).
Pressing ‘calculate’ it will show the age of the person in days and seconds.
For example
You are 12,344 days old. That is 1,066,521,600 seconds.
It will also have another input where the user can type in a number and select from select box (days/seconds) and the output will be precise date/time when they will have that many days.
For example if I type in 10,000 and select days it would calculate:
You would have 10,000 days on 24th May 2011.



