>we can able to validate dateTime datatype if it has the format something like this yyyy-mm-ddThh:mm or yyyy-mm-dd-hh:mm, ... How do you validate those two formats? If you mean you've written it up on your own, you should have pretty good idea how to do the new format as well? You can just expand the charset holding [T-] to include space, like this [ T-]. Why wouldn't it work?
You get good luck from rubbing the belly of a tiny ad: