Because the time format only has two parts, it is only using the last two parts of the dateTimeString. I can't change the time format, because that's how I want the time displayed.
Would it not be better to use .getHours(), .getMinutes() etc. to split the input date into day and time? It seems that the current method is at the mercy of how each browser might format the date string.
Using version 1.5.0
While processing in splitDateTime, the date string is not parsed correctly. I debugged and stopped it when returning. Here is what I find:
Because the time format only has two parts, it is only using the last two parts of the dateTimeString. I can't change the time format, because that's how I want the time displayed.
Would it not be better to use .getHours(), .getMinutes() etc. to split the input date into day and time? It seems that the current method is at the mercy of how each browser might format the date string.