I m taking input from user in this format(string)

DD/MM/YYYY

i want to copy DD and MM in seperate int variable... how can i do that??