Skip to main content

All Questions

0 votes
0 answers
63 views

How to get datepicker to show today's date in a new form using php

I'm using PHP 8.2 and datepicker. I have a form. It has two date fields, which both use the datepicker class. When the page loads, the form is empty (new record). But, the date fields default to 1970-...
John Cowan's user avatar
  • 1,704
0 votes
4 answers
820 views

Laravel: Converting m/d/Y to Y-m-d from jQuery UI Datepicker before saving to database [duplicate]

I am trying to save a date from jQuery UI datepicker to database. I want to display the date in m/d/Y format on date selection from the input form. When I try to save it to the database, it is giving ...
Reman Bala's user avatar
0 votes
1 answer
89 views

jQuery Datepicker doesnt display events on first 10 days of each month

Got a problem with jquery datepicker. Everything is working as expected but the events from the first 10 days of each month doesnt show up. Classes are not applying even that the dates for those days ...
Paul's user avatar
  • 27
1 vote
1 answer
65 views

How can I fix this issue about JQuery Date Picker?

When I tried to get a datepicker for my Yii2 activeform, I've tried JQuery DatePicker to get a better result. However, after I tried the "two-ways" binding method, it appeared a problem called "...
Ngô Văn Quyền's user avatar
1 vote
1 answer
393 views

JQuery Datepicker Returning Empty on One Form But Not Others

Having a problem with the datepicker: when I click on a date, the datepicker works as it should but the form field empties itself of even any current content and remains empty until reloaded or a new ...
user avatar
0 votes
2 answers
792 views

PHP - Bootstrap glyphicon (calendar) used for datepicker wraps to next line

I have a small problem. When I try to show a datepicker in a form inserting the calendar glypycon , the glypycon wrap on the next line and is long as the date field. I want it instead on the rigth of ...
Roberto N's user avatar
1 vote
2 answers
292 views

Jquery ui datepicker position

I have problem in Jquery ui datepicker position relative to input type hidden. I triggered datepicker on click of FontAwesome icon and saving selected date in input type hidden. All working but ...
Ashish Nishad's user avatar
1 vote
1 answer
230 views

jQuery UI Datepicker doesn't work

My datepicker in one file works fine, but in another file it doesn't work at all. Can somebody point out what the problem is? Here is the code of working datepicker: <script type="text/javascript"...
Speedvees's user avatar
0 votes
4 answers
3k views

JQuery Datepicker - Send selected date to a new page, using it as a php variable

EDIT I got it working puting the date behind the url to the target site. On the other side I'm using $_GET['val'] to get the value. But this way too hacky and I'd love to see an more secure solution. ...
er4zox's user avatar
  • 107
2 votes
0 answers
529 views

Bind custom data with date in bootstrap datepicker

I have the count of the total user registered on the particular date. Like the image below. How can I display them with the date? I am using multidatespickr Is there any way to do this? UPDATE : pre-...
Pathik Vejani's user avatar
0 votes
1 answer
280 views

PHP datepicker calendar

First of all, let me tell you what i am trying to do. I am trying to do a datepicker where information on the particular dates would be display out when the user click on the dates. calendar.html &...
Sukiyam's user avatar
  • 81
0 votes
3 answers
723 views

How to compare MySQL datetime and JqueryUI datepicker in PHP?

I have SQL statement, that needs to compare datetime from DB, and JqueryUI datepicker values from client side. This is what I've tried so far: <script> $(function() { $( "#...
fugitive's user avatar
  • 367
0 votes
1 answer
362 views

How to pass id along with date in datepicker?

Below is the table structure and only these dates are available in datapicker and when user click on those available dates i need to take price with that. Table structure and here is my code. var ...
Adas's user avatar
  • 309
0 votes
1 answer
930 views

Passing PHP variable to JQuery datepicker?

I've explored many threads and my problem still isn't solved. I have a JQuery datepicker: <input id="datepicker" name="date" class="mydatepicker" onchange="isValidDate()"></input> I'm ...
bob's user avatar
  • 235
0 votes
3 answers
1k views

Yii, CJuiDatePicker how to block certain days of the Month

So I have this widget on my Yii _form.php page. Is it possible to do things like blocking a certain day of the month? Or maybe blocking all the Mondays of the Month, disallowing users to select any ...
NewbieCoder's user avatar

15 30 50 per page