get day of week from returned date from server
<p>I'm retrieving a timestamp from a server as follows:</p>

<pre><code>2016-03-08 15:30
</code></pre>

<p>I have an array to pass in to get the day of the week:</p>

<pre><code>var dayNameArray = {
"0": "Sun",
"1": "Mon",
"2": "Tue",
"3": "Wed",
"4": "Thu",
"5": "Fri",
"6": "Sat"
}
</code></pre>

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