How to convert format date from PHP to Javascript
<p>I have a php file which I will later change into the form of an HTML file, which be current constraints are:
<strong>- Date format using Javascript.</strong></p>

<p>Her script like the following snippet:</p>

<pre><code>&lt;script type="text/javascript" src="js/jquery-1.8.0.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="js/script.js"&gt;&lt;/script&gt;
    &lt;?php
        /* Set start and end dates here */
        $startDate  = strtotime("15 August 2012 12:00:00");
        $endDate    = strtotime("15 November 2012 12:00:00");
        /* /Set start and end dates here */
    ?&gt;
    &lt;script type="text/javascript"&gt;
        $(document).ready(function(){
            JBCountDown({
                secondsColor : "#ffdc50",
                minutesColor : "#9cdb7d",
                hoursColor   : "#378cff",
                daysColor    : "#ff6565",

                startDate   : "&lt;?php echo $startDate; ?&gt;",
                endDate     : "&lt;?php echo $endDate; ?&gt;",
                now         : "&lt;?php echo strtotime('now'); ?&gt;",
                seconds     : "&lt;?php echo date("s"); ?&gt;"
            });
        });
    &lt;/script&gt;
</code></pre>

<p>please help me to overcome it.
I want to run a php script in javascript that is being subordinated.</p>

<p>example:</p>

<pre><code>&lt;script type="text/javascript"&gt;
        $(document).ready(function(){
            JBCountDown({
                secondsColor : "#ffdc50",
                minutesColor : "#9cdb7d",
                hoursColor   : "#378cff",
                daysColor    : "#ff6565",

                startDate   : startDate,  //format time in JS
                endDate     : endDate,  //format time in JS
                now         : strtotime('now'),  //format time in JS
                seconds     : date("s")
            });
        });
    &lt;/script&gt;
</code></pre>

<p>Please help, 
Regards</p>
