Click here to Skip to main content
15,886,689 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Absolutely lost with starting asp.net mvc Pin
jkirkerx1-Apr-15 8:10
professionaljkirkerx1-Apr-15 8:10 
QuestionChance Textmode Date Format Pin
Praveen Kandari31-Mar-15 22:34
Praveen Kandari31-Mar-15 22:34 
GeneralRe: Chance Textmode Date Format Pin
King Fisher1-Apr-15 0:15
professionalKing Fisher1-Apr-15 0:15 
GeneralRe: Chance Textmode Date Format Pin
Praveen Kandari1-Apr-15 0:24
Praveen Kandari1-Apr-15 0:24 
GeneralRe: Chance Textmode Date Format Pin
King Fisher1-Apr-15 0:31
professionalKing Fisher1-Apr-15 0:31 
GeneralRe: Chance Textmode Date Format Pin
Praveen Kandari1-Apr-15 0:37
Praveen Kandari1-Apr-15 0:37 
GeneralRe: Chance Textmode Date Format Pin
King Fisher1-Apr-15 0:39
professionalKing Fisher1-Apr-15 0:39 
AnswerRe: Chance Textmode Date Format Pin
Richard Deeming1-Apr-15 1:11
mveRichard Deeming1-Apr-15 1:11 
Setting TextMode="Date" will render an HTML5 date input[^] control. This has limited browser support[^], and doesn't provide any way to override the date format.

There are two date formats in play:
  • The wire format, which is how the date is sent to the client, and how it sent back to the server.
    This is required to be yyyy-MM-dd in all cases;
  • The display format, which is how the date is presented to the user.
    This is not part of the specification, so browsers are free to do what they want.
    Chrome and the latest version of Opera currently use the user's local date settings.
    Browsers which don't support the date input will fall back to a text input, which means they have to use the wire format.
You'll probably want to use a polyfill to get the control working in all browsers. For example:

https://github.com/chemerisuk/better-dateinput-polyfill[^]



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Chance Textmode Date Format Pin
Praveen Kandari1-Apr-15 1:24
Praveen Kandari1-Apr-15 1:24 
GeneralRe: Chance Textmode Date Format Pin
Richard Deeming1-Apr-15 1:29
mveRichard Deeming1-Apr-15 1:29 
GeneralRe: Chance Textmode Date Format Pin
Praveen Kandari1-Apr-15 1:37
Praveen Kandari1-Apr-15 1:37 
GeneralRe: Chance Textmode Date Format Pin
Richard Deeming1-Apr-15 1:39
mveRichard Deeming1-Apr-15 1:39 
GeneralRe: Chance Textmode Date Format Pin
Praveen Kandari1-Apr-15 1:49
Praveen Kandari1-Apr-15 1:49 
QuestionI need to pass an ID to a custom validator. Pin
Member 1156804730-Mar-15 11:57
Member 1156804730-Mar-15 11:57 
AnswerRe: I need to pass an ID to a custom validator. Pin
Afzaal Ahmad Zeeshan30-Mar-15 20:09
professionalAfzaal Ahmad Zeeshan30-Mar-15 20:09 
AnswerRe: I need to pass an ID to a custom validator. Pin
jkirkerx31-Mar-15 9:40
professionaljkirkerx31-Mar-15 9:40 
Questionhow to use validation with login Pin
Member 1095307530-Mar-15 4:37
Member 1095307530-Mar-15 4:37 
AnswerRe: how to use validation with login Pin
JHizzle30-Mar-15 4:51
JHizzle30-Mar-15 4:51 
AnswerRe: how to use validation with login Pin
RajeeshMenoth31-Mar-15 20:13
professionalRajeeshMenoth31-Mar-15 20:13 
AnswerRe: how to use validation with login Pin
Praveen Kandari1-Apr-15 0:25
Praveen Kandari1-Apr-15 0:25 
AnswerRe: how to use validation with login Pin
wikizhao31-May-15 23:40
wikizhao31-May-15 23:40 
QuestionNew to ASP/MVC... Question about authentication Pin
USAFHokie8030-Mar-15 4:05
USAFHokie8030-Mar-15 4:05 
AnswerRe: New to ASP/MVC... Question about authentication Pin
jkirkerx31-Mar-15 9:50
professionaljkirkerx31-Mar-15 9:50 
Questionvalidation checking Pin
Member 1071609430-Mar-15 3:57
Member 1071609430-Mar-15 3:57 
QuestionRe: validation checking Pin
ZurdoDev30-Mar-15 3:58
professionalZurdoDev30-Mar-15 3:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.