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
Jagannatha Thripp
NA
8
0
DateTime formatting
Nov 21 2006 9:57 PM
Hello Everyone, I am trying to pass two dates to a stored procedure in SQL server. I only require the date protion of the input not the time, but I cannot seem to get the formatting to just mm/dd/yyyy the data is collected from two text boxes on a web form and is imput as string in the format mm/dd/yyyy. The SP is expecting datetime parameters. I have tried so many variations to this I am wondering if it can even be done???? DateTime FromDate = DateTime.ParseExact(tempdt, "mm/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture); DateTime Todate = Convert.ToDateTime(ToDateLbl.Text); None of these work. All help grealy accepted.
Reply
Answers (
1
)
DateTime formatting
C#,dot net developers required for a CMM level 4 company in chennai,India