H,
my js knowledge is pretty basic however, I have a page where the user will enter a date into a textfield, once the date has been entered I would like to get the
week no
month
year
from that date
initially I have tried to write a function to get the month
however this does not work could someone possibly have a look for me and see what I am doing wrong
Regards
Paul
my js knowledge is pretty basic however, I have a page where the user will enter a date into a textfield, once the date has been entered I would like to get the
week no
month
year
from that date
initially I have tried to write a function to get the month
Code:
<script language="javascript">
function gDate(){
var mydate = document.getElementById("txtDate").value;
month = mydate.getMonth();
document.getElementById("txtMonth").value=(month);
}
</script>
however this does not work could someone possibly have a look for me and see what I am doing wrong
Regards
Paul