Subject: date validation
Posted By: rmscandy Post Date: 8/6/2006 4:37:54 PM
hi all,
I am a newbie to xslt. I need to validate if the user entered valid date, in a format like 'mm/dd/yyyy'. can anybody show me how please?

Thx,
R

Reply By: mhkay Reply Date: 8/7/2006 11:02:25 AM
XSLT 2.0 will process dates in international format (yyyy-mm-dd) using the expression ($x castable as xs:date) but you will first have to convert from the local format used in the USA, which you could do using substring operations.

In 1.0, take a look at the date-handling functions defined in www.exslt.org.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference

Go to topic 48049

Return to index page 210
Return to index page 209
Return to index page 208
Return to index page 207
Return to index page 206
Return to index page 205
Return to index page 204
Return to index page 203
Return to index page 202
Return to index page 201