All Questions
Tagged with jquery-ui-datepicker c#
57 questions
2
votes
1
answer
137
views
Jquery Datepicker element displaying date in incorrect format and messed up styling
I am having a problem with my datepicker element that is driving me crazy. I am using the following code to create the datepicker element in index.cshtml:
@using ChartDataStructures;
@model UpToDate
@{...
0
votes
0
answers
213
views
Change date format in ASP.NET Core application
I want to change the default date format (mm/dd/yyyy) in my ASP.NET Core application. I am using bootstrap date-picker for better user experiences.
But when I change the format to dd/mm/yyyy or dd/mm/...
2
votes
1
answer
5k
views
set date and time in jquery datetimepicker based on another datetimepicker
It works properly until any postback of control fired but when any postback event of control fire and then if we change "from date" than in "to date" datetimepicker it only shows date instead of date&...
0
votes
0
answers
123
views
How to override existing jquery ui datepicker properties to another
I have two jquery datepickers.
<input type="text" id="DateOption1_Common" asp-for="DateOption1" class="form-control form-control-sm form-control-br date-pick" value="" placeholder="mm/dd/yyyy">
...
0
votes
1
answer
1k
views
Using values selected by JQuery datepicker from code-behind
I am building an ASP.NET website, and in the aspx markup page i put in a JQuery datepicker.
I also set default values, and on the FE side it looks ok, the text box is always populated with the ...
2
votes
1
answer
2k
views
Html.TextBoxFor value for datetime.minvalue always turns into 01/01/2001 or disappears
I have a form for setting a date range in a search form like this:
<div>
@Html.LabelFor(m => m.DateRangeStart)
@Html.TextBoxFor(m => m.DateRangeStart, "{0:dd-MM-yyyy}", new { @id =...
0
votes
1
answer
1k
views
JQuery Datepicker not working in Contentpage ASP.Net
Datapicker is working fine without Master Page but when i use Master page and content page, it is not working in Content Page. I am using the following code for Datapicker in Master page and Content ...
0
votes
1
answer
166
views
display only 5 days in datepicker
I have used a jquery datepicker in my code for user input.But i have a requirement where i have to display only 5 days from a specific date in my jquery datepicker excluding weekends.Could you please ...
1
vote
2
answers
2k
views
ASP.NET MVC Core DateTime acting weird when I change my Computer Date format and cannot retrieve datepicker value
My MVC Core will act really weird whenever I change my PC Date Format from dd/M/yyyy to M/dd/yyyy
Weird as in my @Html.TextBoxFor which is DatePicker, when selecting dates and submit, the value ...
0
votes
1
answer
244
views
datepicker not working on first load, jquery
I am working with datepicker jquery for 2 input "from" and "to" filter.
I want to make it required if one of the filters (from/to) has been selected. And if the user doesn't want to use the date ...
0
votes
1
answer
2k
views
jquery datepicker not showing calender
I've multiple date pickers on multiple pages.
I am rendering them through partial views.
The issue is that some of them are showing calendar to pick the date and some not.
This is my input tag(raw)
...
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
1
answer
164
views
Jquery UI Datepicker, beforeShowDay error
I am trying to add days to disable from the server. This is my code so far:
$("#startDatePicker").datepicker({
minDate: '+31',
maxDate: '+12M',
changeMonth: true,
...
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 ...