I want to extract time "10:30" from stime jquery string variable
And transfer value "10:30" in a PHP variable like this format "10, 30"
<script>
var stime = 'Sat Dec 17 2011 10:30:00 GMT+0530 (India Standard Time)';
<?php
$s = "<script>document.write(stime);</script>";
$e = "<script>document.write(etime);</script>";
$stime = substr($s,15,6);
//substr_replace(string,replacement,start,length)
$convert_stime = substr_replace($stime,", ",3,1);
?>
</script>
/**
Output Will Be
--------------
Time: 10:30
Converted Time: 10, 30
***/
Is there a way to handle it? Help me, any suggestion appreciated. Thanks!