All Questions
6 questions
3
votes
1
answer
9k
views
DataFormatString for DateTime
I'm trying to apply a format in a DateTime attribute but it is not working. I have this:
[DataType(DataType.Date)]
[DisplayFormat(DataFormatString = "dd/MM/yyyy", ApplyFormatInEditMode = true)]
...
1
vote
2
answers
385
views
How to get JS field value and use it in Controller Code behind MVC4 / JQuery
I am using ASP.Net MVC4 , with Jquery UI date picker to deal with date field
I wonder to know how can I use the variables in the code .
@Html.ActionLink("Create New", "Create")
<script>
...
1
vote
3
answers
3k
views
Datetime binding from Jquery datepicker to MVC problems
we use the JQuery UI Datepicker.
When i enter the date in this format: 9/22/2012 asp.net MVC says it is not in a valid format.
When i look at the viewmodel which is filled via the binding, it says ...
5
votes
1
answer
3k
views
Day and month are being swapped on date property when saving entity on production server
I'm running into an issue on a clients production server where the month & day is being swapped on a view model property when saving an entity. For example if I were to select April 9th 2012 (04/...
7
votes
3
answers
9k
views
jQuery datepicker's dateFormat - how to integrate with .NET current culture DateTimeFormat
I'm using jQuery's datepicker plugin in .NET ASP MVC3 intranet application. User that use application have offices in different countries and different locale. This is why I wanted to integrate Thread....
1
vote
1
answer
3k
views
MVC jquery datepicker for create allow nulls
I was checking out this link:
http://blogs.msdn.com/b/stuartleeks/archive/2011/01/25/asp-net-mvc-3-integrating-with-the-jquery-ui-date-picker-and-adding-a-jquery-validate-date-range-validator.aspx
...