S
shapper
Hello,
I need to validate a string containing a date, time or datetime. A few
examples:
1. Check if "2008-27-10" is in the format "yyyy-MM-dd" ... in this
case is false.
2. Check if "2008-27-10 20:30:30" is in the format "yyyy-dd-MM
hh:mm:ss" ... in this case is true.
Is there a way to do this?
I only need to return true or false.
Thanks,
Miguel
I need to validate a string containing a date, time or datetime. A few
examples:
1. Check if "2008-27-10" is in the format "yyyy-MM-dd" ... in this
case is false.
2. Check if "2008-27-10 20:30:30" is in the format "yyyy-dd-MM
hh:mm:ss" ... in this case is true.
Is there a way to do this?
I only need to return true or false.
Thanks,
Miguel