it can be easier:
sscanf( date_time_, "%4d%2d%2d", &year_, &month_, &day_ );