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
Bineesh Viswanath
NA
1k
777.7k
Date Time Convertion in C# into DD-MMM-YYYY Format
Apr 30 2014 1:46 AM
Sir,
I want to convert a datetime value from database into DD-MMM-YYYY format in c#.
In SQL SP, I coded as :
(CONVERT(VARCHAR(20),A0505.BKDATE,105)) AS DATE
In this code, I getting the result as I intended.
And in C# code :-
bookingDate =Convert.ToDateTime(rdr["DATE"].ToString())
;
In this code, the result is
' DD-MMM-YYYY : 12:00:00 AM'
. How can set this code into
'DD-MMM-YYY'
Reply
Answers (
6
)
class name conflict from different dlls
Develop Windows Desktop App