Hey Bart,
In order to create our date object, we have to first tell our program that we want to make is in fact a date object. If we were just to write 1421849732000L then our program would most likely interpret that as a string. However we want that to be converted to a date. That's why we use the Date(1421849732000L), to signify to our program that we want a date object with the time of 1421849732000L. and we use the keyword new because, well, we want to create a new date. the creation of new objects always require the new keyword. when creating a object from a class, remember how we use the new keyword there also?
I hope that sort of made sense. Just remember that we always need to use Date() to make a date and input the time of your choice in the parantheses. If you leave it empty, it will make a date object of the current time. and use the new keyword to make a date object
Happy coding and all the best,
Kevin Answer from Kevin Faust on teamtreehouse.com
Miami Herald
miamiherald.com › miami-com › miami-com-news › article314904482.html
When will Diddy be back on Star Island? Rapper gets new release date
5 days ago - According to the Bureau of Prisons, Combs was set to be sprung June 4, 2028, but will get out April 25, 2028. The reason for the date change is unclear, but his lawyers may have gotten him time off for good behavior.
Top answer 1 of 5
1
Hey Bart,
In order to create our date object, we have to first tell our program that we want to make is in fact a date object. If we were just to write 1421849732000L then our program would most likely interpret that as a string. However we want that to be converted to a date. That's why we use the Date(1421849732000L), to signify to our program that we want a date object with the time of 1421849732000L. and we use the keyword new because, well, we want to create a new date. the creation of new objects always require the new keyword. when creating a object from a class, remember how we use the new keyword there also?
I hope that sort of made sense. Just remember that we always need to use Date() to make a date and input the time of your choice in the parantheses. If you leave it empty, it will make a date object of the current time. and use the new keyword to make a date object
Happy coding and all the best,
Kevin
2 of 5
1
Hey Bart,
You seem to have got the important part down. So when creating our Treet object, it takes 3 parameters. when writing strings/ints/etc. these are all primitive data types as you can see here: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html
we never use the new keyword for these as these things are built into java and we can just use them freely. the program can recognize them with no problem. however something like date is different. notice how we have to import date at the top? now in order to use the date, we have to create that date object using the new keyword. to sum it up cleaner: if you want to create an object whether it be from a class or from an import, you must always use the new keyword.
Does that make sense? please let me know if your still confused
Kevin
Videos
08:02
Learn JavaScript DATE objects in 8 minutes! 📅 - YouTube
07:37
JavaScript Date Object Tutorial (2025): Format, Parse & Fix Timezones ...
05:02
How to Get Current Date & Time in JavaScript | Date Object Tutorial ...
10:51
How to Format Dates with Vanilla JavaScript - YouTube
Create a Year Day prototype for Date in JavaScript - YouTube
15:32
Learn the Date Object by Building a Date Formatter | FreeCodeCamp ...
W3Schools
w3schools.com › js › js_dates.asp
W3Schools.com
February 4, 2026 - One day (24 hours) is 86 400 000 milliseconds. Now the time is: milliseconds past January 01, 1970 · new Date(milliseconds) creates a new date object as milliseconds plus zero time:
RapidTables
rapidtables.com › tools › todays-date.html
Today's Date | Current date now 📅
2 weeks ago - Date picker of current date.
Department of Transportation
azdot.gov › mvd › services › dui-suspension › suspension-revocation
License Revocation and Suspension in Arizona | Department of Transportation
Legislation passed in the 2021 legislative session reinstated the driving privileges of Arizona drivers whose licenses had been suspended or restricted exclusively for failure to pay civil traffic violations. Reinstatement of driver licenses occurred on Sept. 29, 2021, which was the effective ...
WatchUSeek
watchuseek.com › home › forums › sales corners › watches - dealers and manufacturers
Rolex Submariner 41MM “No Date” - Ref 124060 (NEW &...
2 days ago - For sale a 41MM Rolex Submariner “No Date “ - Ref 124060 This condition of this watch is new and unworn with full stickers. The warranty card is dated 11/2025. Included with this watch is… -Outer sleeve -Outer box -Inner box -x2 manuals -Warranty card w/ holder -Serialized hangtag -Chronometer hangtag Priced at $13,500 SHIPPED overnight in the ConUS.
MSN
msn.com › en-in › entertainment › movies › vijay-varma-fatima-sana-shaikh-s-gustaakh-ishq-gets-new-release-date › ar-AA1PQfnX
Vijay Varma & Fatima Sana Shaikh’s ‘Gustaakh Ishq’ Gets New Release Date
2 days ago - We cannot provide a description for this page right now
GitHub
github.com › segmentio › new-date
GitHub - segmentio/new-date: Create a new Date, accepting more input types than normal, like Unix timestamps.
var newDate = require('new-date'); newDate(new Date); newDate('Wed, 09 Aug 1995 00:00:00 GMT'); newDate('Aug 9, 1995'); newDate('2011-10-10T14:48:00'); newDate(1363288923637); newDate(1363288923); newDate('1363288923637'); newDate('1363288923');
Starred by 14 users
Forked by 4 users
Languages JavaScript 93.8% | Makefile 6.2%
Crossover 99
crossover99.com › 2026 › 03 › 06 › homicide-new-york-season-2-release-date
Homicide: New York Season 2 Release Date: Detectives Unravel NYC's Darkest Murder Mysteries on Netflix
2 days ago - Providing in-depth entertainment news, movie reviews, and trending pop culture stories. Helping you stay informed with the latest happenings in entertainment and beyond.
MSN
msn.com › en-us › lifestyle › shopping › new-macbook-pro-m5-pro-and-m5-max-announced-price-hike-release-date-specs-and-more › ar-AA1XssXx
New MacBook Pro M5 Pro and M5 Max announced — price hike, release date, specs and more
2 days ago - We cannot provide a description for this page right now