I'm retrieving a timestamp from a server as follows:

```
2016-03-08 15:30

```

I have an array to pass in to get the day of the week:

```
var dayNameArray = {
"0": "Sun",
"1": "Mon",
"2": "Tue",
"3": "Wed",
"4": "Thu",
"5": "Fri",
"6": "Sat"
}

```

How would I get this to say what the day of the week is? Thanks!