There is one more exciting thing you can do: you can enable client script function and write a client script function to do it using a script language say javascript.

(This i leave for you to figure out) Thanks, Ashwani Ahhh my bad.

Been using 2.0 for too long i guess :) I still dont recommend a try catch (and am going to look into the tryparse as it is expensive to use try catchs.

In that case write a simple utility (I have them for integers, decimal etc) that uses regular expressions to validate the date Dear Frd, Just try dd/mm/yyyy Format In regular Expression (optional mm,optional dd) ([1-9]|0[1-9]|[12][0-9]|3[01])[- /.]([1-9]|0[1-9]|1[012])[- /.][0-9]$ mm/dd/yyyy (optional mm,optional dd) ^([1-9]|0[1-9]|1[012])[- /.]([1-9]|0[1-9]|[12][0-9]|3[01])[- /.][0-9]$ mm/dd/yyyy (Exact Format) ^([01]\d)/([0-3]\d)/(\d)$ Regular Expression in Discussion You can use any culture that supports the dd-mm-yy format like the french one, for example to format the date time now in a format dd-mm-yy i can do as follow: culture Info culture = new cultureinfo("fr-FR"); string o Formated Date = dt Now.

^(((((0[1-9])|(1\d)|(2[0-8]))\/((0[1-9])|(1[0-2])))|((31\/((0[13578])|(1[02])))|((29|30)\/((0[1,3-9])|(1[0-2])))))\/((20[0-9][0-9])|(19[0-9][0-9])))|((29\/02\/(19|20)(([02468][048])|([13579][26]))))$ Hi Use this following Regular Expression Details, This will support leap year also.

^(((0[1-9]|[12]\d|3[01])\/(0[13578]|1[02])\/((19|[2-9]\d)\d))|((0[1-9]|[12]\d|30)\/(0[13456789]|1[012])\/((19|[2-9]\d)\d))|((0[1-9]|1\d|2[0-8])\/02\/((19|[2-9]\d)\d))|(29\/02\/((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$ Matches [29/02/2000], [30/04/2003], [01/01/2003] Non-Matches [29/02/2001], [], [1/1/1899] or check this link Script/0520__Regular-Expressions/Use Regular Good Luck google will give you 20400 results for your query

I've only been using javascript for a couple months now and this is not a script I could EVER write myself.

This script is from: Also, forgot to mention that this script auto formats the users input as they type.

Those sneaky found a way to do it and hosed my stuff!

;) To use the CFFORM scripts, you need to include the file in your code.

You may want to convert the regex string and test string to lowercase before testing (if your application allows). This will not catch days that don't exist, like Feb 30th, June 31st, etc.