JavaScript Tutorial For Beginners #31 - The Date Object

preview_player
Показать описание
Hey guys, in this javascript tutorial we'll take a look at the Date object and what we can do with it! The date object in javascript returns back the current date by default, but parameters can be passed into the object to store either future or past dates in a variable.

Any questions, just ask :)

========== JavaScript for Beginners Playlist ==========

========== CSS for Beginners Playlist ==========

========== HTML for Beginners Playlist ==========

========== The Net Ninja ============

========== Social Links ==========

Рекомендации по теме
Комментарии
Автор

Hello Developers. Great work Ninja. Well I just wanted to clarify that the getDay() does not return the day of the week you were born using the predefined date but the day of the week using local time.

henriquessalucamba
Автор

thanks man, let me say that your teaching skills and explanations are awesome and so clear and understandable.. MASHALLAH :)

mujtabaariaye
Автор

great,

small participant : birthday not equal birthday2 . because birthday variable mapped to certain hex number like 0x125aa in memory and birthday2 mapped to hex like 0x125bb.

so when you compare 0x125aa to 0x125bb definitely not equal :)

MrSULTANC
Автор

first video to see on this channel. what a great explanation!
you earned a new subscription. thank you man.

osamagamal
Автор

This helped me out more then you would think. Amazing, to the point tutorial. <3

pureNaturel
Автор

Thank you for this
awesome tutorial

renukagargicollege
Автор

Little correction : The Time is not in milliseconds. It is in seconds: - It is called as Epoch Time.
On systems where the representation of Unix time is as a signed 32-bit number, the representation will end after the completion of 2, 147, 483, 647 (231 - 1) seconds from 00:00:00 on 1 January 1970, which will happen at 19 January 2038.
This is referred to as the "The Year 2038 problem" where the 32-bit signed Unix time will overflow and will take the actual count to negative.

shubhamsihasane
Автор

There is no link down below for getting more information about dates. Please if you could give it :) and many thanks for your tutorials. They are great!

Dianac
Автор

This one is quite awesome ! Keep up ninja ! ;)

GameNon-Quitters
Автор

so months are 0 - 12, but days are 1 -31? Isn't that a bit inconsistent?

brentonjjenkins
Автор

thanks for video, but why did you know getTime method is "1 Jan 1970"?

rathdarasath
Автор

It seems intensely irregular for the month to be zero to eleven when the year, date and time elements conform to literals.. lol. Day of the week is even more irritating when you work by Mon to Sun..

Gavrev
Автор

Hii Ninja,

why did you use : (Birthday.getTime == Birthday2.getTime) and not (Birthday.getTime === Birthday2.getTime) is there a difference?

dwbs
Автор

it's a bit of a shame the links promised in the videos are never in the description.

omikronweapon
Автор

Months are in an array format but days aren't? That's kinda weird.

Axodus
Автор

If it is 0-11 months then why this it give 0 as month? Shouldn't it give out Jan/Feb etc?

ivo
Автор

SO they aren't equal because of the name birthday and birthday2??? JS is freaky sometimes.

hilliparterable
Автор

how strings get compared with "==" operator in java script ???
equals() method should've used instead :\

ajitsinghal
Автор

0:28 There is no "My Date" in the lives of programmers.

muhammadsiddiqui
Автор

Month: 0 - 11
Day: 1 - 28...31
Week: 0 - 6 (So - Sa)

This definitions are so weired!
I understand zero based indexes but using that for months feels so wrong and does not help to write well readable code.

RaffaelW
welcome to shbcf.ru