New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Topic Markup Language and applications: Asked

How to sent a date in a form as string and number at the same time?

I use the calendar function to input a date in a form.

<input class="foswikiInputField" name="date" id="action_due" type="text" size="31" value="" /><img alt="" class="foswikiButton foswikiEditFormCalendarButton" onclick="return showCalendar('date','%e %B %Y')" src="%PUBURL%/System/JSCalendarContrib/img.gif" /

Now I want to send this input date as number in date-format since 1970 in another input variable like

<input id="date2" name="date2" type="hidden" value="%CALC{"$TIME(%URLPARAM{"date"}%)"}%" />

at the same time in the same form when pressing SUBMIT.

How can I do this (I am not a Javascript expert). Many thanks in advance for help!

-- ThomasSchmidt - 13 May 2013


QuestionForm edit

Subject Topic Markup Language and applications
Version Foswiki 1.1.8
Status Asked
Related Topics
Topic revision: r1 - 13 May 2013, ThomasSchmidt - This page was cached on 18 Aug 2018 - 00:25.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy