Convert UNIX into weekday using JS

Convert UNIX into weekday using JS
0

#1

Can someone explain to me how i can convert a unix time into weekdays using JavaScript?


#2

The JS Date object has a getUTCDay() which returns the day of the week, according to universal time (from 0-6).

I personally would use some js date library (I like momentjs: https://momentjs.com/) as date handling can quickly become tricky and messy