Convert Json Date String To Javascript Substring Indexof