A lot of learning for me, Thanks for making such a great video. And your English accent is very clear easy to understand.
@woestyn202 Жыл бұрын
thank you so much for this video. "dcode" you Rock man!
@dcode-software Жыл бұрын
Glad it was helpful!
@RaviTeja-ec7mf3 жыл бұрын
I learned something new in this video Great job 👍
@widespectrumcreators4691 Жыл бұрын
You rock man! 👍👍🤩🤩
@jacob-w3 жыл бұрын
Vanilla Javascript has Intl.DateTimeFormat() functions, so you don't usually need to build simple or standard data formats by hand or use external libraries. Check MDN for documentation. Just Google: "Intl.DateTimeFormat" and you'll get the docs. :) Browser compatibility is no issue.
@dcode-software3 жыл бұрын
Thanks, yeah you can use that method if it works for you but it doesn't let you pass in a mask to get custom formatting.
@jacob-w3 жыл бұрын
@@dcode-software You can always use Intl.DateTimeFormat.prototype.formatToParts() and get an array that holds every single part of a datetime, if you want something non-standard and/or custom formats. It's locale aware, so you don't even have to translate your months and days! :-) But sure, you cant't pass a format to that directly, but that's almost the point oft Intl.DateTimeFormat - you usually don't have to and you don't have to know how dates are formatted internationally. Anyway I do like your videos and this is not a criticizm. Just a suggestion that there is a "standard way" of doing things too. As a non-native english speaker those Intl functions are close to my heart. :-D Intl.NumberFormat() and Intl.RelativeTimeFormat() are worth checking out too.
@hunnidbands1003 жыл бұрын
thank you for padstart didnt know bout this method
@dcode-software3 жыл бұрын
No worries!
@isaacrivera54523 жыл бұрын
thank you you explained everything, some other video does the code without even showing how and why it does what.
@jamesmassa19993 жыл бұрын
Dom liked this vid! Your coding is intuitive. : ) : ) Thank you for your time and effort!
@dcode-software3 жыл бұрын
Glad it was helpful!
@mahmudulhasan63553 жыл бұрын
nice one!!!! thanks a lot!!!!
@tuannguyenanh31783 жыл бұрын
Thanks a lot - just what I am looking for.
@mrcash13093 жыл бұрын
This is really nice. Thank you :)
@mounir1013 жыл бұрын
Pretty awesome!
@romuloalves93493 жыл бұрын
Ótimo vídeo parabéns 👍.
@noctxrnyl8240 Жыл бұрын
v informative
@sudeepkumar88443 жыл бұрын
Sir please make tutorial on web push notifications complete.
@israelochoab31133 жыл бұрын
And what about Intl.DateTimeFormat?
@Knorway563 жыл бұрын
👍
@rangabharath42533 жыл бұрын
awesome
@dbd8683 жыл бұрын
how to add say, "5 days 3 hours 2 minutes to that code so that i could get the time to finished a certain production....help me out...thanks for this its really great....