What about using an <asp:CompareValidator type="Date" ..... /> for your 
<asp:TextBox ..../>

Bob Filipiak
A question not asked
  is a lost opportunity to learn.
----- Original Message ----- 
From: "Arindam" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, March 02, 2005 11:30 AM
Subject: [AspNetAnyQuestionIsOk] How do i check mm/dd/yyy format ?


>
>
> How do i check my input in the textbox is in 'mm-dd-yyyy' format.
>
> Actually i want to write a function like :
>
> public bool IsProperDate(string dt)
> {
> if (dt is in date format)
> {
> return true;
> }
> else
> {
> return false;
> }
>
> }
>
> How do i write it ?
>
>
> Thanks
>
>
>
>
> Thanks & Regards
>
> Arindam
> Web Designer & Developer
>
> 



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





Reply via email to