I am trying to implement a script where I want to check if the input value has date string in it or not. For example:
<ota:Caution ID="Alternative" Type="PackageDetail">Room</ota:Caution>
<ota:Caution ID="Alternative" Type="PackageDetail">2011-11-12</ota:Caution>
In the first example, the Caution element has value as "Room", which is not a date, hence the method should return false, otherwise true, as in case of example 2nd.
Any help please?