Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> JavaScript >> Snippet

Create new date variable


When a variable is created as a date object, it is initialized with the current date - time

var currentDate = new Date ()