How to store a date in a cookie?
<p>I have a javascript library that read date in this form:</p>

<pre><code>12/31/2020 5:00 AM
</code></pre>

<p>So I need to save a date in that form in a cookie.
I write this code:</p>

<pre><code>setcookie("invexpire", time()+3600*24, time()+3600*24*365);
echo $_COOKIE['invexpire'];
</code></pre>

<p>but it display something like this:</p>

<pre><code>1340702563
</code></pre>

<p>So, How can I store a date in that form in a cookie ?</p>
