Basics of the Date Object in JavaScript Part 5: How to Use LOCALE FORMAT Methods

This article is a transcript of my free YouTube series about the basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

Hello developer friends! This will be our last trip together to uncover deep secrets of the built-in Javascript object Date. I will explain the last 3 methods that allow us to further specify the format of the Date output with respect to the locale of the client’s browser. Let’s begin.

The first method’s name is toLocaleString() and it returns a string with a language sensitive representation of the Date.


Basics of the Date Object in JavaScript Part 4: Using FORMAT Methods

This article is a transcript of my free YouTube series about the basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

Hi there, dev newbs! I have prepared something special for you today. We are going to play with the output format of the Date object today. There are 6 methods anxiously waiting for you to learn about them. So let’s not hover too long and let’s get to it!

The first method of the day will be method toString(). It returns a string representing the specified Date object. …


Basics of the Date Object in JavaScript Part 3: Using Static Methods

This article is a transcript of my free YouTube series about the basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

Hi there, my fellow newbs! Another episode of the Date methods is here. Today, we are going to have a look at the STATIC methods of the Date object. There’s three of them and I will explain and showcase each of them. Let’s begin.

The first static method is called now() and it returns the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC. …


Basics of JavaScript — Date Object in JavaScript Part 2: SET Methods

This article is a transcript of my free YouTube series about the basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

Hello, my fellow developers and welcome to the second part of Date object methods. Last time, we covered GET methods. Today, we will be talking about SET methods. Exciting, right? I will explain 7 pairs of SET methods where the first of the pair is non-UTC, or local time zone method if you will, and the other one is UTC method.

The remaining method will be toSetTime, which does…


This article is a transcript of my free YouTube series about the basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

Hello, dev newbs, and welcome back to another article in the ‘JavaScript Basics’ series. This time we are dealing with the Date object.

Because there’s not that much content for each individual method and therefore separate articles would be short and boring, I have decided to split this series into 5 parts. …


This article is a transcript of my free YouTube series about the basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

Hi there, dev newbs! I am back with another long series for you. This time, we will tackle the Date object. I don’t know about you, but I always had to struggle in the past when I was using it. I could never remember the correct methods to use and when I needed a specific format, I could never get it easily.

But those days are gone now and…


Photo by Fabian Blank on Unsplash

Here’s the recap of my earnings after two months of writing technical articles on Medium. To be precise, I wrote 36 articles on the topic of Javascript Basics. The first article was published at the end of June and the last one so far was published at the end of July. On average, I published one article per day, although at least in the beginning, I published three at a time. That is the maximum limit to publish on Medium in one day.

Nice thing was that I did not spend too much time per article, because I already had…


This article is a transcript of my free youtube series about basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

Hello my fellow developers! I am Jacob and this is the last method of the String built-in object series. It was not always easy to force myself to do the next article on time — especially because barely anyone watches them. But if you want to make it, you can not give up, so I didn’t and here we are. Today’s method is called valueOf() and it will be a…


This article is a transcript of my free youtube series about basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

Hello dev newbs. Only 2 more methods to cover. Today, we are looking at another lazy sibling of the trim() method which only trims the whitespaces from the beginning of the string. Wow, this trim() has some lazy family members. But nevertheless — let’s cover it quickly.

trimStart() method removes whitespace from the beginning of a string. Whitespace in our context is all the whitespace characters (space, tab, no-break space…


This article is a transcript of my free youtube series about basics of web development. If you prefer watching over reading, feel free to visit my channel “Dev Newbs”.

Hello dev newbs. 3 more methods to cover. Today, we are looking at a lazy sibling of the trim() method which only trims the whitespace from the end of the string. Let’s get into it.

trimEnd() method removes whitespace from the end of a string. Whitespace in our context is all the whitespace characters (space, tab, no-break space, etc.) and all the line terminator characters (line feed, carriage return, etc.).

Jakub Korch

Web enthusiast, programmer, husband and a father. Wannabe entrepreneur. You name it.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store