Click here to Skip to main content
16,011,120 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
C#
public datetime = new startdatetime


how to write this in javascript?
Posted
Comments
Sergey Alexandrovich Kryukov 21-Nov-11 3:24am    
Before answering this question, it would be good to know: in what language your code sample is written and what's its exact meaning?
--SA
prince_rumeel 21-Nov-11 3:29am    
i want to use datatime type variable in javascript.
Sergey Alexandrovich Kryukov 21-Nov-11 3:31am    
How about answering my question? What is it, just pseudo-code? Do you need just to get a current time stamp?
--SA

The question is still not clear. Chances are, you will need just this: http://www.w3schools.com/js/js_obj_date.asp[^].

Google would do it for you much better. :-)

—SA
 
Share this answer
 
All data types could be declared by var keyword in javascript. Examples for date time variables :

http://www.w3schools.com/jsref/jsref_obj_date.asp[^]

Good Luck
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900