I been learning to code and this had me pulling my hair out for ages, nobody said jack about how your local machines time affects the date input... everyone kept blabbing on about unix being utc which i'd obviously enter and not get the expected result. So many useless stackoverflow posts and finally a video that clearly just explains it.... my fault for not reading the docs in this case tbh. Thanks for the vid.
thank you. Just learning JavaScript. This was one of my issues that I was having issues with. Two questions if you don't mind. If I wanted to format the date to only show month/day/year how would I go about doing that? 2nd question: is there a way to automatically send emails out with outlook without have to click send and without using an outside code to process the event?
@@makeratplaycoding2666 Mike, I am just removing moment.js from an angular app and have to come to this video over and over again, coz I have to be carefull about this possible time shift. So I value the video very much!!
I tested and It works. However what happens when the string date has not only the date but also hours, minutes and seconds in that case i think it doesn't work. try adding 2019-01-02 13:00 in inputtext Date In in my case result was Wed Jan 02 2019 19:00:00 GMT-0600 (Central Standard Time) (my time zone in browser is Indian/Mauritius)
How to validate on the backend if user is older than 18 years from their date of birth passed as javascript date from frontend client? One user could be from India and one from US with separate time zoned date formats
So january is month "0" in JS - who ever idiot came up with that idea should be sent to North Korea and work as Kims foot stool for the rest of his life!
This was a nightmare for me and I fixed it by installing the DayJS library and these methods. I set everyone to ET. const dayjs = require('dayjs'); dayjs.utc('2022-10-29T00:00:00').tz('America/New_York');
Wonderful tutorial! Straight to the point, no BS, showing what, how, why, and how to find it in the spec! 👏👏👏🏆
Thanks
I've been struggling for 2 days with this issue, thanks for explaining it so clearly!
Glad I could be helpful.
2 days? Dare I say a month. Nothing online was clear as this. I even tried moment js with no success
Appreciate the feedback.
I been learning to code and this had me pulling my hair out for ages, nobody said jack about how your local machines time affects the date input... everyone kept blabbing on about unix being utc which i'd obviously enter and not get the expected result. So many useless stackoverflow posts and finally a video that clearly just explains it.... my fault for not reading the docs in this case tbh. Thanks for the vid.
Glad it was helpful.
you're my new favorite youtube coder, please continue making videos
Thanks for the kind words.
Thank you so much I was stuck on this at work all day… gonna try this later tonight
Glad it helped!
This is exactly what I was looking for...
Thank you so much.
You are welcome. Glad to be of help.
awesome, thanks to you I have defeated the demon haunting me for so many years. you have got a new subscriber.
Thanks. Glad my video helped you.
Thank you, your video was really helpful and finally I fixed this bug with offsets in my app.
Glad it helped
You just saved my life. Thanks.
Glad to help.
Thank you :) I am not a developer but this helped me solve a bug for my Team.
You are welcome. Glad my video helped you.
Thank you very much. It helped me in resolving a real-time scenario
Thanks for the feedback.
the background music should have been a clown jingle... this is ridiculous. Thanks for explaining it so clearly
Glad it was helpful.
thank you very much sir, i solved my problem with date
Glad it was helpful.
Well explained Michael, thank you.
Very welcome
Thanks for uploading this video. Very helpful. Keep uploading plz.
Thanks for the positive feedback.
Thank you! Very well explained, this video helped me resolve this same issue in my app!
Glad to be helpful.
thank you. Just learning JavaScript. This was one of my issues that I was having issues with. Two questions if you don't mind. If I wanted to format the date to only show month/day/year how would I go about doing that? 2nd question: is there a way to automatically send emails out with outlook without have to click send and without using an outside code to process the event?
have a production error in my app where dates are off by one day. thx for making this!
Glad to be helpful.
Very useful looking for webpack and node videos
Glad you found it useful.
Thank you, this is really helpful.
You are Welcome. Glad it was helpful.
This is very useful information. Thanks for that!
You are welcome. Glad it was helpful.
Thank you so much,
I appreciate your effort to do such a video. It helps me to fix a large bug
You are welcome. Glad I was able to help you.
Great! Thank you so much. This is very helpful.
Glad to be of help.
Your a beauty!! Thanks for your help.
Your welcome.
very helpful, thanks !
You are welcome. Thanks for the feedback.
very well explained, it will help me a lot, thanks!
Glad to hear that!
Great explanation! Thanks a lot
You are welcome.
Thanks your for this video
This video is interesting
Thanks for the comment.
Thank you! Subscribed :)
Thanks
Excellent!
Thanks!
@@makeratplaycoding2666 Mike, I am just removing moment.js from an angular app and have to come to this video over and over again, coz I have to be carefull about this possible time shift. So I value the video very much!!
@@milanSK1980 I appreciate the comment. I have dealt with this bug many times in my programming career.
Really helpful!!
Glad it was helpful.
nice video you look like raymon raddington from blacklist
Thanks.
Thank you!
You're welcome!
Thank you so much!
You are welcome.
I tested and It works. However what happens when the string date has not only the date but also hours, minutes and seconds in that case i think it doesn't work. try adding 2019-01-02 13:00 in inputtext Date In in my case result was Wed Jan 02 2019 19:00:00 GMT-0600 (Central Standard Time) (my time zone in browser is Indian/Mauritius)
Raymond Reddington explaining time zones
🤣
Can i retrieve timezone(or all possible timezone names) based on specific date object which contains offset?
I am not sure. I would google for an answer.
How to validate on the backend if user is older than 18 years from their date of birth passed as javascript date from frontend client? One user could be from India and one from US with separate time zoned date formats
Not sure I understand the question.
@@makeratplaycoding2666 updated question to better understand
Thank You..!!!
You're welcome.
Great
Hope it was helpful.
@@makeratplaycoding2666 yea
Thanks
You're welcome
So january is month "0" in JS - who ever idiot came up with that idea should be sent to North Korea and work as Kims foot stool for the rest of his life!
😂
The code is a little small
Appreciate the feedback. I have improved on this in my later videos.
bru 16 minutes to explain this is crazy..
I tried to be detailed. :)
This was a nightmare for me and I fixed it by installing the DayJS library and these methods. I set everyone to ET.
const dayjs = require('dayjs');
dayjs.utc('2022-10-29T00:00:00').tz('America/New_York');
It is always good to use a library. Always better to understand how that library is solving the problem.
Thank you!
You are welcome.