<?php

echo date('m/d/Y', strtotime('2008-07-31'));

?>

trying to use your dates in mysql in javascript? use this code in your php page.

url = document.location;
document.write(url);

obj is the <div> id

<script type='text/javascript'>
function toggle(obj){
   var e=document.getElementById(obj);
      if(!e)return true;
      if(e.style.display=="none"){
         e.style.display="block"
      } else {
         e.style.display="none"
      }return true;
}
</script>

in your markup

<a href='#' onClick="toggle('mydiv')">Toggle</a>
<div id='mydiv' style="display:none">
  Lorem ipsum dolor sit amet, consectetur
  adipisicing elit, sed do eiusmod tempor
  incididunt ut labore et dolore magna
  aliqua. Ut enim adminim veniam.
<div>

EDIT: sorry for the wrong code. :D its now updated

Hello world!

July 31, 2008

Here we will compile our codes. created by us or founded in the web.

all rights are reserved to their rightful owners. This site is not affiliated to any contents posted here. use it at your own will.