Linked Questions

1 vote
2 answers
9k views

I am trying to format date time attribute in MVC 4 class like this : [Required] [DataType(DataType.Date)] [DisplayFormat(ApplyFormatInEditMode = true,DataFormatString = "{0:dd/MM/yyyy}")] public ...
Amir's user avatar
  • 101
0 votes
1 answer
1k views

I understand that if you want to parse a dateTime String in a specific format when converting it to a DateTime object you do this DateTime someDateTime = DateTime.ParseExact(myDateTime , "dd MMM yyyy ...
megaman's user avatar
  • 1,105
28 votes
3 answers
34k views

I'm using ASP.NET MVC 3. My ViewModel looks like this: public class Foo { [DataType(DataType.Date)] [DisplayFormat(DataFormatString = "{0:dd.MM.yyyy}", ApplyFormatInEditMode = true)] ...
šljaker's user avatar
  • 7,384
13 votes
4 answers
24k views

I have a situation where I am having trouble with the client side validation of a datetime field. When I try to submit it keeps telling me the date is invalid (27/7/2013). But if I turn the date ...
user2206329's user avatar
  • 2,842
10 votes
2 answers
33k views

I'm trying to handle user input for date values, I want to prompt user to input date in this format: dd/MM/yyyy what I tried to do: I read and implement the answer for Darin in this question: Format ...
fares Ayyad's user avatar
4 votes
3 answers
19k views

I'm developing an asp.net mvc 5 application, in which I'm trying to set a validation for dd/MM/yyyy format, I've been struggling a lot to find an appropriate solution but no success, what I want it to ...
Bilal Ahmed's user avatar
  • 1,129
2 votes
4 answers
24k views

I'm in a bit of trouble here learning C# and mvc4. The Problem occurs in the Filter part of my application. I have an ViewModel that grabs the list of "Listar_Produtos" of the database, and some ...
Marcos Santini's user avatar
1 vote
3 answers
15k views

I want to test the data picket on my asp.net mvc web application. 1.So I created the following test model:- public class TestClass { [DataType(DataType.Date)] public DateTime D { ...
John John's user avatar
  • 7,353
7 votes
2 answers
6k views

Using MVC4 with client-side & unobtrusive validation enabled, I'm trying to understand how the validation determine if an entered DateTime value is valid or not. In my application this formatted ...
Yair Nevet's user avatar
  • 13.1k
2 votes
2 answers
21k views

I am using ASP.NET MVC 5. I have a date only picker in my create and edit form. In create form, its working just fine. But in edit form, it loads previously saved DateTime as dd-MM-yyyy hh:mm:ss. On ...
Prakhar Mishra's user avatar
2 votes
1 answer
2k views

Iam try pass a few parameters to controller with javasqcrip and jquery. this is the code: @using PagedList.Mvc; @model PagedList.IPagedList<Universidad.Entidades.PER_PERSONAS> @{ Layout =...
ecl's user avatar
  • 33
1 vote
4 answers
2k views

Unlike the U.S.A ... most other countries uses the dd/MM/yyyy format (from smallest to biggest). However, .NET naturally takes in date in MM/dd/yyyy format. I have an input that accepts a datetime, ...
andyh0316's user avatar
  • 355
0 votes
2 answers
2k views

I have a class like: public class Item { public int ItemID { get; set; } [Display(Name = "Value")] [Column(TypeName = "money")] public decimal Value{ get; set; } } In the form I ...
weldsonandrade's user avatar
-1 votes
1 answer
830 views

I searched almost every topic on this site regarding date format also DatePicker however couldn't find any solution for my issue, also applied This with no success Problems Date format is not applied ...
Maro's user avatar
  • 2,629
0 votes
0 answers
591 views

I have a edit page for the deviceassignments and when i click on save when i change le "status du prêt" for example, i have this error with my DateLoan and my DateReturned. When i create a ...
Frankthetank's user avatar

15 30 50 per page