I need to generate a date in UTC format, but without the time part, that is, instead of getting:
Wed, 19 Jan 2021 19:27:00 GMT
I need only:
Wed, 19 Jan 2021
I know that there is a "long" way to do it by formatting the string myself using methods one instance of Date()
and concatenating them. But I would like to know if there is a shorter way to do it.
By the way, I can only use Javascript vanilla.