Question
· Jan 12

javascript Date() options

I am trying to pull out something similar to an HL7 date/time stamp in a custom zen page , in a javascript code section.

var d new Date();

(Fri Jan 12 2024 16:58:30 GMT-0500 (Eastern Standard Time)

but,
var year = d.getFullYear();

<Error>

d.<formatcmd>  doesn't seem to work.  (d.getmonth, etc.)

Is there and date formatting I can use inside a javascript routine?

Discussion (3)2
Log in or sign up to continue