Something has occurred to me. I think if I could coerce the form field 'renewdate' into a javascript Date object then I should be able to manipulate it that way but I've tried:
But this returns:Code:var day = renewdate.substr(0,2) var month = renewdate.substr(3,2) var year = renewdate.substr(6,4) var whenever = new Date(year,month,day) alert(whenever);
Tue Nov......oh, hang on! I've cracked it!
Hooray (runs round office, arms aloft....like a loser)....
![]()




Reply With Quote