Skip to main content

All 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)] ...
Deise Vicentin's user avatar
2 votes
1 answer
3k views

Restrict Date Range in jQuery DatePicker in MVC3 Razor

I am currently working on jQuery date picker where I want to restrict the user to select the date from 1st of every month to 28th of every month. The remaining dates after 28th would not be ...
Abhishek's user avatar
  • 2,034
0 votes
1 answer
355 views

jquery datepicker is not working in asp.net mvc3

the jquery datepicker is not working. I don't know why. Everyone is doing the same thing, same code, but mine is not working. Can anybody tell where is my problem, my code is given below -- ...
Mayeed's user avatar
  • 800
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> ...
ImnotaGeek's user avatar
1 vote
3 answers
888 views

Datepicker issue when implementing in mvc3?

Using Mvc3 razor. I tried to implement the Jquery data picker with an inputbox on my form, I am getting this exception "Microsoft JScript runtime error: Unable to set value of the property 'currentDay'...
Chaka's user avatar
  • 1,541
4 votes
2 answers
5k views

Why does jQueryUI datepicker swap day and month on page reload?

I have an MVC3 application where one of the pages has a jQuery datepicker: <script> $(function () { $("#expirationDate").datepicker(); $("#expirationDate").datepicker("...
sharptooth's user avatar
  • 171k
1 vote
1 answer
5k views

Microsoft JScript runtime error: Out of stack space in date.js

I just dont get it why i get this Microsoft JScript runtime error: Out of stack space in my date.js file.... return format?format.replace(/dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?/g,function(...
JYR's user avatar
  • 109
0 votes
2 answers
538 views

Datepicker date format on server

I have a probleme with date picker I have already created controllers with read/write actions and views using EF everything was OK Till I have need to create a controller with a modelView so I chosed ...
Minoucha's user avatar
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 ...
Michel's user avatar
  • 23.7k
0 votes
1 answer
385 views

jQuery datepicker doesn't work in Modal MVC 3

DatePicker works around the project, but does not work in a modal. The Modal is a partial View. This in a editor template. DateTime.cshtml @model System.DateTime? @Html.TextBox("", ViewData....
kalu's user avatar
  • 337
11 votes
3 answers
41k views

How to get a datepicker for Html.Editorfor

On my MVC3 razor page I have a date field @Html.EditorFor(model => model.Member.Dob) Given below is the code I am trying to get a datepicker for the Date of Birth field. <script src="@Url....
Lee's user avatar
  • 665
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/...
Jesse's user avatar
  • 8,403
1 vote
2 answers
3k views

KnockoutJS date binding issue, using jQuery datepicker

I am having a problem with binding a date to the object on my viewmodel. I have a date that I am getting from the server. var viewModel = { profile : ko.mapping.fromJS(initialData), I am binding ...
Eric's user avatar
  • 13
3 votes
1 answer
6k views

Datepicker within a select dropdown

I'm wondering if the following may be possible using something like jQuery. I've looked all over but haven't found a solution. I am using MVC 3/razor for my project. I have jQuery 1.5.1. We want a ...
Eddie Wesley's user avatar
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....
dragonfly's user avatar
  • 17.8k

15 30 50 per page