TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
scampercat
NA
189
0
C# 2010 session variable
Jun 21 2012 6:10 PM
In a C# 2010 web application, I would like to know how to convert a session variable that is in a date time format to a string value that displays in a textbox on the web application. I would like to only obtain the date part of the value.
I have tried lots of versions that look like the following:
Date1.Text = Session["Date1"].ToString("yyyy-MM-dd HH:mm:ss");
How would you setup this code so the value is acutally set correctly for the textbox?
Reply
Answers (
1
)
how to delete multiple rows using grid view
C# textbox color