How can I check in javascript if it's day time or night time on the client? : <p>Using <a href="https://date-fns.org/v2.9.0/docs/isBefore" rel="nofollow noreferrer"><code>date-nfs</code></a>, how can I check if <code>new Date()</code> is between 8am and 8pm?</p>
