If your web application is targeted for a international audience you should consider different time zones. Then I suggest to use JavaScript to generate these dates.

If you are fine with using the server's time zone then you can use
- EXSLT with XSLT 1.0 [1]
- XSLT 2.0 current-date() [2]
- DateInputModule in sitemap [3] & [4]

Alex

[1] http://www.exslt.org/date/functions/date/index.html
[2] http://www.w3.org/TR/xpath-functions/#func-current-date
[3] 
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/modules/input/DateInputModule.html
[4] 
http://cocoon.apache.org/2.2/core-modules/sitemap-components/1.0/apidocs/org/apache/cocoon/components/modules/input/DateInputModule.html


On 28.09.2008, at 12:20, Jessica Kung wrote:

Hello users

I need to setup a form below and initialise the two fields, start date field with today's date and the end date field with the current month's end date. See attached gif file for illustration.

I would be much appreciative you can send me a sample code for this form using xsp and xsl.

Thanks in advanced.

Sincere Regards,
Jessica
< search .gif >---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to