writing this coment from Sun Nov 11 2018 13:48:45 GMT+0200 (Восточная Европа, стандартное время) and it is the best lessons for beginners, thank you)))
The following method pulls out time from your local machine… I have been trying to find a method to show specific time zone on a webpage regardless visitor's time zone. There are plenty of advices how to do it mathematically but there may also be problems and in the end i realized that such methods require super complex code, because many aspects need to be considered, such as daylight savings, dates also may differ in different time zones after midnight and so on… I found out that there are specific libraries created for this purpose but got a bit confused… Is it possible that may be one day you dedicate a video tutoring on this problem? I am sure it may be useful for many people, for example, if you want your code to create time stamps of the same time zone for users from different time zones… Thank you!
Hey! I know it was recorded 2 years ago but I'll try 😀 If I put my code on a website server, it would show user time set on server or individually for each user?
Thanks for taking out the time to teach this, I do have a question. What should i do after I go through these tutorials? And what are some good websites? I'm interested in the learning the MEAN stack.
How would i know if i should use () or without it with the length. Is there a way you can tell whether its a property or method or do you have to know it?
Im on my phone therefore pretty hard to type out..it was something like this..mydate.length.. I was just curious why the length was a property and not function as it is retrieving the length so was performing some kind of action… Can you please let me know when you do a video on properties of a function object and prototypes. Many many thanks You are awesomeeeee
I thought any function of a object would be a method so hence the reason that why i thought length was a method as it will go and retrieve the length from the object. An i right in saying Properties are things that describe something and methods are doing/do something? Is count a property or method?
Hi Can you advise why .length is a property and not method as it is a function that counts the length of string so why aint it say mystring.length() instead of mystring.length?
26 responses to “JavaScript Tutorial for Beginners – 24 – Date Object”
Sun Jan 06 2019 12:21:29 GMT+0530 (India Standard Time)
Hey @EJ Media, where are you from?
writing this coment from Sun Nov 11 2018 13:48:45 GMT+0200 (Восточная Европа, стандартное время)
and it is the best lessons for beginners, thank you)))
wow!! you teach very EJ MEDIA KEEP UP THE GOOD WORK!!
The following method pulls out time from your local machine… I have been trying to find a method to show specific time zone on a webpage regardless visitor's time zone. There are plenty of advices how to do it mathematically but there may also be problems and in the end i realized that such methods require super complex code, because many aspects need to be considered, such as daylight savings, dates also may differ in different time zones after midnight and so on… I found out that there are specific libraries created for this purpose but got a bit confused… Is it possible that may be one day you dedicate a video tutoring on this problem? I am sure it may be useful for many people, for example, if you want your code to create time stamps of the same time zone for users from different time zones… Thank you!
If you are watching after 2018, some of these methods are deprecated.
setYear() => setFullYear()
getYear() => getFullYear()
I tried this and I have no idea why it doesn't work:
var myDate = new Date();
var myYear = myDate.getFullYear;
document.write(myYear);
Wed Jan 24 2018 11:24:40 GMT+0100 (CET)
Can you combine string and setFullYear?
Hello this is 2017 i'm watching your video and i'm going to give u a like and my like was Numper 90 LOL
Today Is 2017 Yaay!
Have My Mothers Pancake LOOOOOOOOOOOOOOOOOOOOOOOOOOOL!
So 2 years later, I'm here in 2017 and watching this.
Hey! I know it was recorded 2 years ago but I'll try 😀
If I put my code on a website server, it would show user time set on server or individually for each user?
Thanks for taking out the time to teach this, I do have a question. What should i do after I go through these tutorials? And what are some good websites? I'm interested in the learning the MEAN stack.
This is my jscode, it doesn't work. Someone pls help!
var todayDate = new Date();
var useString = todayDate.toDateSting();
document.write (useString);
Awesome Tutorials Sir , i have learn a lot of things !! thank you so much to provide such a videos !!!
Thank you..ill watch out for your videos on prototype and Function object which has properties and methods
Thank you
Hi
How would i know if i should use () or without it with the length. Is there a way you can tell whether its a property or method or do you have to know it?
Hi
Im on my phone therefore pretty hard to type out..it was something like this..mydate.length..
I was just curious why the length was a property and not function as it is retrieving the length so was performing some kind of action… Can you please let me know when you do a video on properties of a function object and prototypes. Many many thanks
You are awesomeeeee
I thought any function of a object would be a method so hence the reason that why i thought length was a method as it will go and retrieve the length from the object. An i right in saying Properties are things that describe something and methods are doing/do something?
Is count a property or method?
That would be awesome if you could do a video on property of a function video
Hi
Can you advise why .length is a property and not method as it is a function that counts the length of string so why aint it say mystring.length() instead of mystring.length?
Please note that the setYear() and getYear() methods are considered deprecated now. You should use getFullYear() and setFullYear() instead!
Thank you for the effort you have put into these videos – We have been following them closely. Waiting for DOM and the rest of it!
Great Job!!!
Awesome tutorials… i like how you spread them… its easier to learn… at least for me… Keep up the work!
Thanks for uploading. I'm looking forward to the Document Object Model.