In the very big picture, I'm not sure why it matters. In this particular specific case, the date is supplied to prepare to set an RTC. A separate subsequent dataset would contain a command like "set\n", "exec\n", etc. to actually configure the RTC.
While I wish the was a switch statement for char[] strcmp, a series of if statements will have to suffice to determine if a command is sent.