how to pass datetime in session value to next page
- by SmartDev
Hi ,
I have textbox which is a date field . i need to store that in a session and pass that value to another page . im using sessions for that .
can anyone tell how to convert it to date time and pass in a session .
Example:
Session["startdate"] = Convert.ToDateTime(textbox1.Text);
is this the rite way.
Thanks
Sachin