With difficulty
You could do a check in the string for the + or - symbol to indicate Offset
You could then do a check for a : to detail if a time has been put in the string for datetime
You could check the length of the variable is 10, if the date has been provided only