i have two buttons and two textbox in my page.
when i press my first button (First month) i need to display the current month in one textbox and last one months date in another textbox.
and while pressing the second button (submit) i need to display the date displayed in the textbox as itself and the records between thoses two dates. if that date is still there in the textbox only i can sort the records.
in vbScript i tried to display the current date and last months date like this.
Expand|Select|Wrap|Line Numbers
- <script language="VBScript">
- sub onemonth()
- form1.datefrom.value = dateadd("m",-1,date())
- form1.dateto.value = date()
- end sub
- </script>
if you know please help me.
Thanks in advance...