DEV Community

Cover image for Day-76 Training At Ryaz
mahin651
mahin651

Posted on

Day-76 Training At Ryaz

  • Date:28/04/2022
  • Day:Thursday

Today, I started at about 11:00 am as I was in progress to do the java script course so, I started with the left over task and firstly I started with creating dates in java script Date objects are created with the new Date() constructor.Date() constructor creates a JavaScript Date instance that represents a single moment in time in a platform-independent format after this I started with adding dates to the app and testing it after this I started with different operations with date in java script You can simply create a date using new Date() . You can pass parameters to the Date constructor to create a date of your choice. The given parameter can take different forms.The getFullYear() Method,The getMonth() Method,The getDate() Method he getDate() method returns the day of a date as a number (1-31) after this I started with internationalisation dates intl.DateTimeFormatThe Intl.DateTimeFormat object enables language-sensitive date and time formatting.it have fowling parameters like Intl.DateTimeFormat — language-sensitive date and time formatting.Intl.NumberFormat — language-sensitive number formatting,Intl.PluralRules — plural sensitive formatting and plural language rules.,Intl.Collator — language-sensitive string comparison. after this I started with set timeout The setTimeout() method calls a function after a number of milliseconds. this way my day ended up and I got to learn many new things.

Top comments (0)