xsl-list
[Top] [All Lists]

RE: Date

2002-12-02 02:39:43
Sorry , Sorry the question was how to identify that it is a 
date value(or in the other words how do u decide whether it is date)

How on earth do you expect anyone on this list to know enough about your
data to answer that question?

You could try testing to see whether it is 8 digits and whether the last
four digits are a number in the range 1970 to 2030. If you don't like
that rule, then you should be able to think of a better one. If you
can't, it's because the whole idea is misguided. Why are you processing
incoming XML documents whose tags you don't understand?

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list