I have a incoming string like this :- *DDMMYYHHMMSS# DD Stands for Date, MM stands for month, YY stands for year, HH stands for Hour...
Example *021216213940# (Date : 2nd December, 2016 Time : 21:29:40)
How can I extract values from above given string and copy to int data type.
int Date,Month,Year,Hours,Minutes,Seconds;
int Date = (str[1] - '0') * 10 + str[2] - '0'.10to get the "tens". For example if the first digit is2then2 * 10 = 20.*021216213940# (Date : 2nd December, 2016 Time : 21:29:40). How to extract the date and month?