homepage Welcome to WebmasterWorld Guest from 54.145.183.169
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Javascript variable
wconti

10+ Year Member



 
Msg#: 310 posted 8:51 pm on Mar 13, 2003 (gmt 0)

Hello!

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

alert(myVar)
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.

 

txbakers

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



 
Msg#: 310 posted 5:39 am on Mar 14, 2003 (gmt 0)

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

Just put your literal in quotes.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved