All Questions
21 questions
0
votes
3
answers
2k
views
Why aren't datepicker values assigning the form input a value
I am having a similar if not the same problem as this question:
Jquery datepicker selected date not assigning the value
However the answer given is next to useless.
I have an asp.net MVC application ...
0
votes
0
answers
104
views
$form.valid() throwing error for date input field: Uncaught Missing number at position 0
I've created a datepicker to select Month and year.
Date format is M-yy (e.g. Jan-2017) and using jquery.validate.js for form validation
I've following validation attributes on the property in ...
2
votes
1
answer
913
views
The value 'xx/xx/xxxx' is not valid for "y" - Jquery Datepicker DateTime
I am using the Jquery datepicker to pick the date in my MVC application and I'm using the dd/MM/yyy format.
When I submit the form I get this error:
The value '24/05/2017' is not valid for Datum ...
0
votes
1
answer
1k
views
MVC 4 models not accept jquery datapicker date format
I am using Entity framwork 6 , MVC 4 and jquery datepicker. When fill all the form data and press the submit button the ModelState.IsValid always return false value, because the jquery datepicker ...
0
votes
2
answers
66
views
jQuery datepicker dosen't work as excepted
I need my date input to be dd/MM/yyyy, but when I use this code:
$('#DateTime').datepicker({ dateFormat: 'dd/MM/yyyy' });
It shows the date like this: 28/December/20162016.
Any idea?
Update:
It ...
1
vote
2
answers
459
views
Add Time Values From Drop Downs To DatePicker Value
I'm building an MVC 5 web application. Within one of the Razor Views I use a JQuery DatePicker to select a date from the Calender. Then I have two drop down menus, one to list each hour of the 24 Hour ...
1
vote
1
answer
992
views
jQuery datepicker opens on the wrong date?
I have following date format 31.12.2049 which is December 31st, 2049. When I click on the icon to open the datepicker, today's date is selected. This is using Norwegian Bokmal (nb-NO) and I noticed ...
1
vote
5
answers
23k
views
ASP MVC DateTime validation error
In asp.net MVC 5, I have a form that displays data from a DTO object:
public class FieldDTO
{
[DataType(DataType.DateTime)]
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:...
1
vote
2
answers
2k
views
jQuery UI datepicker not working with asp.net mvc
I am working with ASP.Net MVC with Jquery Date picker.
here is my model class
public class myViewModel
{
public DateTime? FromDate {get;set;}
public DateTime? ToDate {get;set;}
}
here is my ...
0
votes
1
answer
5k
views
JavaScript runtime error: Object doesn't support property or method 'replace' in jquery-ui.js
I have below methods in my Controller
[HttpPost]
public ActionResult GetEventsForMonth(int month, int year)
{
var events = new ListWithDuplicates();
Dictionary<string, string> eventsnew ...
0
votes
0
answers
509
views
Date format issue with DatePicker asp.net mvc
I have a problem with datepicker format, it sets the date to MM-dd-yyyy. First, my model was set to following date format dd-MM-yyyy, I've changed it to MM-dd-yyyy in my model but nothing happen, the ...
1
vote
3
answers
15k
views
Working with Datetime & date picker
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 { ...
0
votes
1
answer
2k
views
Date-picker is not working in MVC
I am using jquery 2.1.0 and its been called in my _Layouy.cshtml page @Scripts.Render("~/bundles/jquery") i am trying to add datepicker to my view but i am getting an error 0x800a01b6 - JavaScript ...
-1
votes
1
answer
3k
views
How to use DatePicker in MVC?
I table tblEmp stucture like this :
Id int
Name nvarchar
NIK int
Point numeric
JointDate date
and i want field jointDate inputed with datepicker control, so it can input by ...
0
votes
1
answer
2k
views
Add datepicker to Asp.net MVC app
I am building an Asp.net MVC app and would like to add a datepicker.
I have this code in my form in the view
@Html.LabelFor(b => b.Date)
@Html.EditorFor(b => b.Date, new {id = "news_date"})
...