In message <11**********************@h48g2000cwc.googlegroups .com>, Wed,
8 Nov 2006 04:54:50, Pankaj <pa******@gmail.comwrites
>a) I have two form fields. In one of them, a user enters the date (in
dd-mm-yyyy format, using a calendar) and in the second, he enters a
number. I have to add this number to the date and calculate the result.
FAQ 3.2 .. .. A = S.split('-') ; D = new Date(A[2], A[1]-1, +A[0] + +N)
But you should validate the date : js-date4.htm
>b) I need to display this calculated value in a particular cell on the
form body and not inside a text box. How do I go about this
FAQ 4.15
It's a good idea to read the newsgroup and its FAQ. See below.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
<URL:http://www.jibbering.com/faq/>? JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.