is there any function to check if a given date is valid or not? I don\'t want to write anything from scratch.
e.g. 32/10/2012 is not valid and 10/10/2010 is valid
The boost date time class should be able to handle what you require. See http://www.boost.org/doc/libs/release/doc/html/date_time.html