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
Rohan Ramani
NA
786
145.9k
How to set Date Time format in 24 hours in c#?
Dec 3 2019 2:28 AM
Hello,
I have to set date time format in 24 hours.
DateTime dtDeadline = (DateTime)currentResume.PositionDeadlineTime;
dateDeadLine = dtDeadline.ToString(
"dd MMM yyyy hh:mm:ss"
);
This will give the results as "03 Dec 2019 01:30:00" // 12 hours
But I need the results as "03 Dec 2019 13:30:00" // 24 hours
Reply
Answers (
1
)
how can i save 2textbox in one field in sql using c#
How can i insert 9 digits + charters using validation ctrl?