Deprecated: Function create_function() is deprecated in /var/www/vhosts/eduardoarellano.com/d4mations.com/wp-content/plugins/wp-automatic/wp-automatic.php on line 70
The Date Object – Getting, Setting & Formatting Dates in JavaScript – Tutorial | D4mations.com
  • Sunday , 25 October 2020

The Date Object – Getting, Setting & Formatting Dates in JavaScript – Tutorial

Code Canyon



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.

In most cases, a library such as Moment.js may be more suitable for working with dates but sometimes this native object is enough to satisfy your requirements.

Support me on Patreon:
https://www.patreon.com/dcode – with enough funding I plan to develop a website of some sort with a new developer experience!

For your reference, check this out:
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date

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!

Original source

3d Ocean

Related Posts

4 Comments

  1. Rep 101
    March 8, 2020 at 18:29

    Thanks, DOM ๐Ÿ™‚

  2. Andrey Zhilyakov
    March 8, 2020 at 18:29

    Very good tutorial! Also if you need only date part in string format you can use: new Date().toDateString() and you'll get something like // expected output: Wed Jul 28 1993

  3. Z O
    March 8, 2020 at 18:29

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

  4. Joseph David
    March 8, 2020 at 18:29

    Awesome. Thanks ๐Ÿ‘

Leave A Comment

You must be logged in to post a comment.