I would use a regular expression as explained here

http://aspnet.4guysfromrolla.com/articles/022603-1.aspx




On Sun, 27 Feb 2005 05:23:02 +0000 (GMT), Arindam <[EMAIL PROTECTED]> wrote:
> 
> 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! India Matrimony: Find your life partneronline.
> 
> [Non-text portions of this message have been removed]
> 
> 
> Yahoo! Groups Sponsor
> ADVERTISEMENT
> 
> ________________________________
> 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 the Yahoo! Terms of Service. 


-- 
Doug Nelson
www.synappnorth.com


 
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