Date validation in C/C++

Questions about programming languages and debugging
Post Reply
User avatar
l0ngb1t
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 598
Joined: 15 Apr 2009, 16:00
15
Contact:

Date validation in C/C++

Post by l0ngb1t »

hey
i'm writing a simple C++ application, in it i have to ask the user to enter a certain date...
and am confused between several method, and witch one is more smoother then the other
is better to take the date part by part (day then month...)
or to read it one time as a string and then separate it...
+ about validating to date, is there any library that do that for me or i have to make my own function to do that...
i created a function that test the date if it's valid or not, but i case there's a library for such thing it will make the code more simpler and way too smaller...
There is an UNEQUAL amount of good and bad in most things, the trick is to work out the ratio and act accordingly. "The Jester"

User avatar
leetnigga
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 447
Joined: 28 Jul 2009, 16:00
14

Post by leetnigga »

Boost has a library for date/time IO.

Post Reply