thisform.txttodate.value= DATE() thisform.txtfrdate.value = DATE() dfrdate = thisform.txtfrdate.value dtodate = thisform.txttodate.value