how to split the date

when date(dd/mm/yyyy)input is given c++ program , how its 3 components(dd,mm,yyyy) can be taken into 3 different variables(x=dd, y=mm, z=yyyy).
Topic archived. No new replies allowed.