Need help I wont to get a system date as integers such as(22/02/2008) rather than string cause I need this to compare two dates any ideas?

Filling a struct tm and doing a mktime will give you a time_t . Then you could perhaps use difftime to compare.