Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Javascript variable

8:51 pm on Mar 13, 2003 (gmt 0)

New User

10+ Year Member

joined:Mar 13, 2003
votes: 0


I have this var
myVar=new Date(2003,2,12,17,18,12);

returns "Wed Mar 12 17:18:12 PST 2003"

Is it possble to get the literal string
"new Date(2003,2,12,17,18,12)"
instead of the formed date?

All the best.

5:39 am on Mar 14, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Sept 1, 2001
votes: 0

myVar = "new Date(2003,2,12,17,18,12)" ;

Just put your literal in quotes.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members