Just looking for a quick and dirty solution.
Does anyone have a function or the code to do this?
==========================================
----Server Code (Golang)-----
d := time.Now()
//x := <<<<<This is the code I need>>>>
j, err := json.Marshal(x)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
w.Write(j)
------Client Code (JavaScript)------
//....Ajax..... retrieve j
myDate = JSON.parse(j)
d = new Date(myDate)
==========================================
Thanks in advance to anyone who can provide the simplest way to do this without new imports,
visits to github, or a lesson in date formatting (already been to the dentist this month).