I was wondering if there's a way to store multiple variable data in a string. I am trying to store the date, month and year that I am taking from user as an input to store in a single string/array.
scanf("%d/%d/%d",&getDate.dd,&getDate.mm,&getDate.yyyy);
Assuming that the value entered above is a valid input, How can I store getDate.dd, getDate.mm, getDate.yyyy in a single string/array in a DD-MM-YYYY format?