a440guy ... i've already got javascript that checks the dates but in the dd/mmm/yyyy form how do i convert the dates so that after the check they can use the (date2 < date1).
tleish .... that works except for the month bit of the date entered, would this code only work for dates entered in dd/mm/yyyy format or will it also work for dates entered in dd/mmm/yyyy format?
the code used to check the date's are vaild is:
function CheckDate(THISDATE) {
if (THISDATE.value !== ""

{
var err=0
a=THISDATE.value
if (a.length != 11) err=1
b = a.substring(3, 6)// month
c = a.substring(2, 3)// '/'
d = a.substring(0, 2)// day
e = a.substring(6, 7)// '/'
f = a.substring(7, 11)// year
if (b!="Jan"

if (b!="jan"
if (b!="Feb"
if (b!="feb"
if (b!="Mar"
if (b!="Mar"
if (b!="Apr"
if (b!="apr"
if (b!="May"
if (b!="may"
if (b!="Jun"
if (b!="jun"
if (b!="Jul"
if (b!="jul"
if (b!="Aug"
if (b!="aug"
if (b!="Sep"
if (b!="sep"
if (b!="Oct"
if (b!="oct"
if (b!="Nov"
if (b!="nov"
if (b!="Dec"

if (b!="dec"

err = 1
if (d<1 || d>31) err = 1
if (f<1900) err = 1
if (e!="/"

err=1
if (b=="Apr"

{
if (d==31) err=1
}
if (b=="apr"

{
if (d==31) err=1
}
if (b=="Jun"

{
if (d==31) err=1
}
if (b=="jun"

{
if (d==31) err=1
}
if (b=="Sep"

{
if (d==31) err=1
}
if (b=="sep"

{
if (d==31) err=1
}
if (b=="Nov"

{
if (d==31) err=1
}
if (b=="nov"

{
if (d==31) err=1
}
if (b=="Feb"

{
var g=parseInt(f/4)
if (isNaN(g)) {
err=1
}
if (d>29) err=1
if (d==29 && ((f/4)!=parseInt(f/4))) err=1
}
if (b=="feb"

{
var g=parseInt(f/4)
if (isNaN(g)) {
err=1
}
if (d>29) err=1
if (d==29 && ((f/4)!=parseInt(f/4))) err=1
}
if (err==1) {
alert(THISDATE.value + " is not a valid date. Please re-enter in dd/mmm/yyyy format. \n e.g. 01/Jan/2001"

;
THISDATE.value = ""
return false;
}
else if (THISDATE == ""

{
return
}
}
}