June 28, 200917 yr Hi, I have a an event form where users enter what, where and when (with js datepicker). when is from and to form fields. the user doesnt have to enter the when and if its empty the search defaults to the next 3 months from today. I want to do the following: by default i want to show in the from form field the word 'today' im using value="Today!" onfocus="if(this.value == 'Today!') this.value=''" onblur="if(this.value == '') this.value='Today!'" in the to form field i want to show the date 3 months from today based on the server date. i have found the following snippet to create a button with the server date and time (i dont need time) but i dont know what to do... void Page_Load(object sender, EventArgs e) { Button1.Value = DateTime.Now.ToString(); } So, to get the date 3 months from now and display it like above, how do i do it?
July 3, 200917 yr may you post your html code... I didn't understand too much the structure of the form and what you want to get...
Create an account or sign in to comment