check two timestamps are same day
<p>I am getting some data from SQL which has <strong>timestamp</strong> and i Wanna check whether they are same day or not....</p>

<p>In a loop i am trying to check the previous loop timestamp is same as the current loop timestamp...... I am trying something like this.....</p>

<pre><code>$.each(data, function(key, value) {
   if( new Date([value.startTime] * 1000) === previousdate){
       console.log("*** Same day ***");
    }
    previousdate = new Date([value.startTime] * 1000);
}
</code></pre>

<p>But though they are same day but they differ in time ...... I just want to check they both are same day or not..... I can trim them before comparing them so that way it works fine.... but is there any other effective way to do this.....</p>

<p>Cheers...</p>
