This specific content was written 13 years ago.
Please keep this in mind as it may be outdated and not adhering to best-practices.
1) Getting Current Time in Javascript
The ISO 8601 date format can be utilized to convert the date on the browser side to a format that include timestamp information. Quoting from here:
Note that the “T” appears literally in the string, to indicate the beginning of the time element. Times are expressed in UTC (Coordinated Universal Time), with a special UTC designator (“Z”). Used in ATOM RSS feeds.
function fnISO() {
// Only works in Firefox using ECMAScript 5
var now = new Date().toISOString();
alert(now);
}
Result: 2009-08-06T23:36:31.390Z
Feb 11 2014
JQuery Calendar and PHP: Handling Inserts
1) Getting Current Time in Javascript
The ISO 8601 date format can be utilized to convert the date on the browser side to a format that include timestamp information. Quoting from here:
Result:
2009-08-06T23:36:31.390ZBy Menelaos Bakopoulos • JQuery, PHP, Programming, Stackoverflow 0 • Tags: JQuery, PHP