Parse a date
#1

Hello.

Upon registration, a player must enter a birth date.

But I do not know how to check if this date is real ...

It entered in DD / MM / YYYY.

Should verify that such day is not equal to it if this month is not equal to it (number of days per month) or if the year is not equal to it (leap year, it's okay to worse) ...

I can not even get the three numbers with sscanf: /

thank you
Reply


Messages In This Thread
Parse a date - by Urefeu - 26.09.2011, 04:27
Re: Parse a date - by [HiC]TheKiller - 26.09.2011, 05:38
Re: Parse a date - by Ensconce - 26.09.2011, 06:11

Forum Jump:


Users browsing this thread: 1 Guest(s)