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
jothi kumar
1.6k
107
56.3k
how to set the date format while typing in textbox in mvc 5
Jul 25 2014 3:51 AM
hi to all,
here i'm set a field name startdate in textbox but the date format will takes(MM:DD:YYYY) now i want to change (DD:MM:YYYY).can anybody help for this task.
in modal:
[
DataType
(
DataType
.
Date
)]
[
DisplayFormat
(
DataFormatString
=
"{0:yyyy-MM-dd}"
,
ApplyFormatInEditMode
=
true
)]
public
Nullable
<
System
.
DateTime> Start_date
{
get
;
set
;
}
IN VIews:-
@Html
.
TextBoxFor
(
m
=>
m
.
Start_date
,
"{0:dd/MM/yyyy}"
)
Above code not work for me . Kindly help me please
Reply
Answers (
3
)
GridView
how to search all fields in table using mvc