What is the code for getting the current time?

Question:What is the code for getting the current time?

1. now = new Date();

2.var now = new Date();

3.var now = Date();

4.var now = new Date(current);


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!