All Questions
Tagged with jquery-ui-datepicker date
106 questions
0
votes
1
answer
710
views
How to force ui-datepicker date format to ("yyyy-MM-dd")
Can someone please help me with formatting a date in a form-control ui-datepicker. Despite setting the format in the model and in the view the picker ignores that and uses MM/dd/yyyy.
In the model I ...
1
vote
0
answers
55
views
Undisable disabled days in jQuery datepicker
I want to un-disable dates in the datepicker, I tried to empty the array of the disabled days, but they are still disabled when I open the datepicker.
Here is my code to disable the days in the ...
0
votes
1
answer
155
views
Only allow the last friday in month date picker don´t work for me
I want to enable only the last Friday in each month in my datepicker. In another example I found a code-snippet but it doesn't work for me. Maybe my picker uses other attribute names?
How I can do ...
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/...
0
votes
0
answers
336
views
The date selected with datepicker takes the value of the previous day
When I select the date 16-01-2021, this value comes to my input field. But when I look at the value received by the service, I get the value "{15.01.2021 21:00:00}". how can i fix this?
1
vote
1
answer
847
views
Date Picker Skip a disabled day Javascript
I would like to skip disabled dates.
working: The code can skip the dates that are from the array:
var disabledDates = ["2020-08-07","2020-08-06"] <br />
not working: The ...
1
vote
1
answer
560
views
JavaScript console.log of datepicker and counting difference between two dates doesn't work
I'm struggling to get a console.log of two dates as well as the days between those two days.
This is the JavaScript part:
var startDate;
var endDate;
$(document).ready(function() {
var j = ...
0
votes
2
answers
492
views
Hide an element depending on the time of the CURRENT DAY
I am using ui-datepicker calender from jquery, and i am trying to hide an element, option:nth-child(2), of the following options only on the current day before 10am:
<select name="...
2
votes
1
answer
86
views
How do I get dates retrieved from external file to match dates in jq datepicker?
This is the first time I've asked for help, so apologies if I've got the format or level of detail wrong.
I want the datepicker dates to change their background color for all dates that match a set ...
-1
votes
1
answer
710
views
JQuery datepicker default date and multiple datepickers
Im using this datepicker
https://jqueryui.com/datepicker/
I have 2 date fields in the same html form.
I need the first field to load today as default date.
Second one as todays date -7 (1 week ago.)
...
0
votes
2
answers
2k
views
Jquery- How to set the date before today can't be select?
I able to make today date appear at the check-in date, but the problem is the user still be able to choose the date before today date. Is that any solution can allow me to solve his problem? Any ...
1
vote
1
answer
748
views
How to change 2nd Date picker date base on 1st Date picker?
I have two datepickers for start date and end date. Automatically when page load end date is 3 months plus from current date and start date is current date.
So, I want if I change start date in my ...
0
votes
0
answers
54
views
Future timestamps formatted as 1. January 1970 with PHP date()
I've been reading for hours and can't figure this out: I format a date (strtotime) from datepicker for DB use. then when i display it again i make it "readable" with date(). this works fine in the ...
0
votes
2
answers
26
views
jQuery change format not changing format to stated format
My Code:
/* DATE PICKER */
$('#thedate').datepicker({
dateFormat: 'dd-mm-yy'
});
/* FLOW DIFFERENTIATION */
//<![CDATA[
$(window).load(function() {
$('#thedate').datepicker();
$('#...
0
votes
1
answer
713
views
jQuery datepicker disable all dates per week but one
I want to pick a date, lets say I pick one Monday, i want to only be able to pick only Mondays on the other datepicker and disable all the other dates, in other words I want to pick a interval of 7 ...