Hi Lucky!!
<script>
function calldate()
{
dateformat='dd/mm/yyyy hh:mm:ss'
D = '17/11/2006 05:30:43'
D=new Date(2006,11,19,5,30,43) //year, month, day, hour, minute, and seconds
d1=(D.getTime())
D=new Date(2006,11,18,5,30,43) //year, month, day, hour, minute, and seconds
d2=(D.getTime())
alert(d1>d2)
}
</script>
<input type=button onclick="calldate()">
plz adjust ur dateformat string while createing new Date() before assigining it to D=new Date( ) function
hope this will help you
Cheers :)
vinod
|