Parse long date/time to HH:MM

I'm trying to convert a date & time reply from a modem to HH:MM format. I need to set an Arduino for the correct time on startup.

The modem returns:
+CCLK: "12/02/28,10:49:53+08"
OK

I'd like to format time to a string like HH:MM. So I'm determined to learn to parse any comma or colon separated string, etc. to extract what's needed. I have not been able to find any examples close enough to this to adapt it.

Any suggestions appreciated.
Last edited on
You could use a regex expression to extract what you want from the initial string.
Topic archived. No new replies allowed.