Convert UNIX into weekday using JS

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

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: as date handling can quickly become tricky and messy