The Date Object - Getting, Setting & Formatting Dates in JavaScript - Tutorial For Beginners

preview_player
Показать описание
In this video I'll be demonstrating how to use the native JavaScript Date object to work with dates on the client-side of your web application or website.

Support me on Patreon:

For your reference, check this out:

Follow me on Twitter @dcodeyt!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Рекомендации по теме
Комментарии
Автор

Perfect, thanks mate. Date object is always one of those things I've used but never sat down and studied the workings of because it was low on the priority list. Good to finally understand it a bit better.

JustSomeRandomIdiot
Автор

I've always had a little trouble with Date, but now I understand everything. Great tutorial!

invisibleboi
Автор

Great Tutorial bro! Keep it up.

Also to those who is looking for the mm/dd/yyyy 00:00 format you can skip to 15:50

mrv
Автор

Thanks again Dom! I'm constantly using your videos for reference; you're a one-man stack overflow! Please keep up the great work!

jamesmassa
Автор

thank you man, You literally gave me the answer for my assignment in my college, and also made me understand how the date system works in js

azorawarsingh
Автор

Best video I come across so far on this topic

jamesnahtaniel
Автор

A lot of thanks! You said exactly what I thought: "Date object is more than enough"!

jhonny
Автор

pretty good introduction, wasn't able to find what I was looking for, but now I know whay I'm doing! tnx

koi
Автор

Would love to see you doing something cool with it visually as well, this was a great help!

dyssus
Автор

Covered exactly the right aspects of all this, thank you!

ninjaduck
Автор

Thanks matey, great tutorial... I’d be real interested to know the justification behind zero basing the month and not the day etc. Must have been a committee decision ;o)

m
Автор

Great video and straight to the point. Thank you.

CodingAfterThirty
Автор

new Date("some-random-string-09") returns Sat Sep 01 2001 00:00:00 GMT+0530 instead of invalid date. but if I do "new Date("some-random-string") " it returns Invalid date. Is there a way to validate a string whether it is a valid date string or not ?

suryapratap
Автор

This is cool

But I'm looking for a one that will append a date after a post eg.
Article 3.5 posted 18 hours ago or
posted 3 years ago

saltech
Автор

You sound a little bit like Ozyman XD . Ps. Good nice tutorial ;>

wiktorliszkiewicz
Автор

How can I show today's real date without time there, it's annoying me

kujtimgjokaj
Автор

I literally just want someone to show me how to get the date to update in real time WITHOUT the time stamp that is all. I can't find out how anywhere.

andrewporter
Автор

You are wrong. It says (Eastern European Summer Time).
Just kidding...

AstroSardaukar