falconia
08-15-2003, 04:16 AM
Clicking on the select link gives me a popup calendar where I choose wanted date, then it's displayed in the field "date1" with the format dd.MM.yyyy. (This works correctly).
<FORM method="post" name="MyForm" id="MyForm" action="MyPage.pgm">
<td>
<SCRIPT LANGUAGE="JavaScript">
var cal1 = new CalendarPopup();</SCRIPT>
<input type="text" name="date1" value="<field name=*WRKFLDS.date1>" size=11 maxlength=10>
</td>
<td>
<a HREF="#" onClick="cal1.select(document.MyForm.date1,'anchor1','dd.MM.yyyy'); return false;" NAME="anchor1" ID="anchor1">
select
</a>
</td>
What I can't figure out is how to display the date in three seperate fields with the formats dd, MM and yyyy.
Hope you understand my question:) Anyone got an idea?
<FORM method="post" name="MyForm" id="MyForm" action="MyPage.pgm">
<td>
<SCRIPT LANGUAGE="JavaScript">
var cal1 = new CalendarPopup();</SCRIPT>
<input type="text" name="date1" value="<field name=*WRKFLDS.date1>" size=11 maxlength=10>
</td>
<td>
<a HREF="#" onClick="cal1.select(document.MyForm.date1,'anchor1','dd.MM.yyyy'); return false;" NAME="anchor1" ID="anchor1">
select
</a>
</td>
What I can't figure out is how to display the date in three seperate fields with the formats dd, MM and yyyy.
Hope you understand my question:) Anyone got an idea?