Skip to main content

All Questions

0 votes
1 answer
519 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 ...
A Cameron's user avatar
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 ...
Eli-ott's user avatar
  • 318
0 votes
1 answer
130 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 ...
Chris's user avatar
  • 23
0 votes
0 answers
211 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/...
Mehedi Hasan Kajol's user avatar
0 votes
0 answers
288 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?
jiyanyasli's user avatar
1 vote
1 answer
808 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 ...
Can't Code's user avatar
1 vote
1 answer
513 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 = ...
stepbysteptomathpro's user avatar
0 votes
2 answers
477 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="...
jamey's user avatar
  • 1
2 votes
1 answer
85 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 ...
Learner's user avatar
  • 21
-1 votes
1 answer
689 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.) ...
Tammi Santiago's user avatar
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 ...
J.Boy's user avatar
  • 15
1 vote
1 answer
651 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 ...
user avatar
0 votes
0 answers
53 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 ...
Melvin's user avatar
  • 339
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(); $('#...
Kars's user avatar
  • 83
0 votes
1 answer
709 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 ...
Duarte Andrade's user avatar

15 30 50 per page
1
2 3 4 5
8