<script> f='18/6/2007'; f=f.split('/'); document.write(Math.floor(new Date(f[2],(f[1]-1),f[0])/1000)); </script>