iphone - Regex for date in user entered textfield

Posted by vikinara on Stack Overflow See other posts from Stack Overflow or by vikinara
Published on 2010-03-08T20:03:53Z Indexed on 2010/03/08 20:06 UTC
Read the original article Hit count: 379

Filed under:
|

Hi all,

Am a newbie to iphone programming.

i have a input box and the user can write his DOB(mm/dd/yyyy) into the box. Before i save the data i like to test for valid input. I am using Regexlite.h and Regexlite.m.i have the regular expression too. i want to compare the regex to the user entered value in text box.But am not knowing how to do it.Please help.

Any idea how to test for a valid date? (in .NET i use a simple regex but for the iPhone sdk i am a bit helpless) - but somebody must have been done this before...

Thanks Viki

© Stack Overflow or respective owner

Related posts about regex

Related posts about validation