Tagged Questions
1
vote
1answer
54 views
jQuery date picker : limit to selected month
how do i limit date range to selected month.
if user select month of November in 'From date' i need to limit 'To date' in that selected month. No matter user select November 30th. to date should only ...
0
votes
1answer
265 views
jquery datepicker convert to date() on php
i have a script that saves a date like this.
$date = date('i')+50;
When i store this on my database, i got something like 1382851302 wich works great to compare for past and future just using > or ...
0
votes
2answers
127 views
datepicker jquery in bootstrap
I cant seem to get datepicker (jquery) to work in my bootstrap register page. I tried to click but nothing seem to happen.
did i miss out anything? Do take a look at the code below!
datepicker from ...
-1
votes
1answer
90 views
Yii CJuiDatePicker not working after cloning the form
Before posting a question here I tried this
. But unfortunately nothing worked for me.
CJuiDatePicker which is not working after cloning the form.
Following is my cloning code:
function ...
1
vote
4answers
100 views
How to print date from jquery calender?
I have created a jquery calender as below
<div id="calendar"> </div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script ...
0
votes
1answer
57 views
php show notice within that interval dates
In php I want to show a message in the page within the activated dates means the date from and till date will selected by the admin and within those selected days the message will be shown in the ...
0
votes
1answer
141 views
Date format for PHP sorting with Mysql (Datepicker)
I'm using DatePicker to allow users to add events into a calendar db table but I want to be able to let other users search the database and pick dates between 2 values, so I was wondering what the ...
0
votes
0answers
75 views
Parsing sql array to jquery datapicker. Confused
I'm currently trying to populate an inline jquery datepicker with only the dates that are held in an array I'm pulling from an sql database. My code is below. It would be a great help if somebody ...
0
votes
1answer
51 views
one day gap between datepicker and php date
So I have this jquer datePicker (no special configuration), it goes like:
$(function() {
var startTs = new Date("' . gmdate('D M d Y', $timeStamp) . '");
var endTs = new Date("' . ...
0
votes
3answers
230 views
Send jquery datepicker data to php on page load
I am using jquery datepicker.
<form action="" method="get" name="date">
<br />
Start Date :<input type="text" name="sdate" id="sdate" />
End Date : <input ...
0
votes
2answers
82 views
Cant get the values from filters to post on my jqgrid
I have a jqGrid and some filter fields, 2 comboboxes and 2 jQuery-ui datepickers. When I try to post the values from the fields I only get the original value. For example, my combobox starts with an ...
0
votes
1answer
95 views
How to pass date object to a function
I have a jQuery datepicker plugin along with some text fields. I pass the field content data to the function using AJAX. I am obtaining object object when I alert the value of
var dateObject = ...
1
vote
2answers
246 views
Datepicker get date accoding to server date/time
How to make work datepicker according to server time , how to set the server time to datepicker Jquery Ui, any help will be appreciated
Yes via clinet side we cannot get the server datetime, is there ...
4
votes
4answers
2k views
Convert a PHP date format to a jQueryUI Datepicker date format
[EDIT] : I guess people had problem to understand exactly what I mean, so I completely rewrote my explanations.
I work on a project where users can define a date format used in the whole site. It ...
0
votes
4answers
795 views
Start Date and Start Time Less than End Date and End Time Validation
Start Time, End Date and End Time variables.
The Date Variables are formatted yyyy-mm-dd
The Time Variables are formatted hh-mm (however only on hour numbers are usable, e.g Minutes is always 00)
...
-2
votes
1answer
3k views
jquery datepicker change date format to yyyy-mm-dd php [duplicate]
Hi I am trying to format the jquery datepicker so that it displays as yyyy-mm-dd
I have both a start_date and end_date..
I have tried changing the script in the head to:
<script>
...
0
votes
1answer
311 views
Complex Date Issue - PHP - Codeigniter - Jquery UI Calendar
I am creating a site that utilizes the jquery ui datepicker. I have it where items have different rental lengths. So a car might be 7 days, while a tent might be 3 days.
When the user enters a ...
0
votes
1answer
296 views
How to use datepicker in Symfony2
I want to add datepicker in my code. I downloaded bootstrap-datepicke. But how add correct this component? I tried something like this
<form action="{{ path('pattient_test') }}" method="post" >
...
1
vote
2answers
368 views
Retrieving and Comparing Dates using JQuery And PHP
I am using jQuery's datepicker in wordpress/PHP and I am using this code to show dates:
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$(function() ...
9
votes
5answers
280 views
jQuery UI Datepicker - Being able to pick day or month
I'd like to know if there is any way to be able to select a whole month in jQuery UI's Datepicker while still being able to select a single day.
I tried 'hacking' it by adding an onClick event to the ...
0
votes
0answers
148 views
Server time in jQuery UI Datepicker
How do you set the highlighted date as Server date in jQuery UI Datepicker?
I am using PHP for the server side programming and I have the following code:
<script>
$(function() {
...
1
vote
2answers
365 views
Getting first day of month in PHP 5.2.6?
I have following scenario: Datepicker for user to choose Year,Month, and use it to display records for the selected month. The selected value is passed to details_subcontractor.php, using Ajax. ...
1
vote
3answers
7k views
How to pass the jquery datepicker value in form POST method?
I have a input text in the form for date and i use JQuery datepicker to select date.
<input type="text" id="datepicker" name="datepicker" value="Date"/>
when i use form post to post the ...
2
votes
1answer
271 views
Restrict date based on the selected value in another dropdown
What I require is that the selection of dropdown in period value is restricted on basis of the selected value in period type.
If day is selected in period type, then in period value selection of ...
-1
votes
1answer
187 views
JQuery datepicker icon trigger broken after inserting data to database
at first i got to load my icon for the JQuery datepicker but after i insert the value to my database the icon image is broken. im using Codeigniter framework.
here's my html code:
<!DOCTYPE ...
0
votes
1answer
530 views
Convert “Sun Jul 15 2012 00:00:00 GMT+0700 (SE Asia Standard Time)” to YYYY-mm-dd in php/javascript
I am using datepicker plugin from eyecon.ro and I got selected date with $('input').DatePickerGetDate();.
The output is: Sun Jul 15 2012 00:00:00 GMT+0700 (SE Asia Standard Time)
How to convert it ...
0
votes
0answers
209 views
Highlight days on datepicker using json_encode from mysql from database
I need to populate a javascript function to highlight days on datepicker. I am using <?php echo json_encode($row['date']);?> but it doesn't work! The output generated is "2012-07-24"null
Here ...
1
vote
4answers
1k views
Prefil date from database in Jquery UI datepicker field
I have an edit form, where the values are populated from the database. I have one date field in the format yyyy-mm-dd. I have setup the jQuery Datepicker and its working on the date field, however, ...
2
votes
4answers
725 views
How can I compare a start date and end date using the jQuery Datepicker?
I use the jQuery Datepicker for two different text fields. One field for start date and another for end field. I disable date before current date using minDate. My code is like this:
$( "#start" ...
-3
votes
3answers
48 views
how to display date as feb-04-2012 instead of 02/04/2012 in uidatepicker
My UI date picker shows the date as mm/dd/yy format I need to change this as monthname-dd-yy
i.e.
04/02/2012 as march-02-2012
But I don't know how?
Does anyone know this?
Please advice
0
votes
0answers
171 views
Assign class to individual date ranges in jQuery datepicker
I have a datepicker calendar using the following code (date ranges are taken from MySQL db):
var ranges = [ { start: new Date(2010, 8, 1), end: new Date(2010, 8, 20) },
{ start: new ...
0
votes
1answer
339 views
jQuery Calendar with custom date ranges
I have had a search, and some answers do hit on my problem, but aren't quite close enough.
I am putting together a booking system, and have a range of "tariffs" in a MySQL db.
All of these tariffs ...
2
votes
3answers
418 views
allow datepicker to pick values only upto two weeks from the start date
<script type="text/javascript">
$(function() {
$('#downpayment_date').datepicker({
dateFormat: 'm/d/yy', minDate: new Date(<?php echo $this->y;?>, <?php echo (($this->m) ...
3
votes
5answers
105 views
Date format misinterception
In my form, I have a textbox and I a field called as "pickup_date". I am using jquery Datepicker. The date is in format of dd/mm/yyyy. But when I am trying to recreate the date using JavaScript, the ...
0
votes
1answer
546 views
compare jquery datepicker with php variable
<script type="text/javascript">
$(function() {
$('#dp_date').datepicker({
dateFormat: 'm/d/yy', minDate: 1,
beforeShowDay: $.datepicker.noWeekends
});
});
</script>
I ...
0
votes
1answer
999 views
jQuery Date Picker Min Max date issue
<?php
$week_start_date = '2012-02-06';
$week_start_date = '2012-02-12';
?>
$("#test").datepicker({
altField: "#test1",
altFormat: "yy-mm-dd",
autoSize: true,
minDate: new ...
0
votes
1answer
158 views
Jquery Calander: While loading the page calendar should be selected the range based on Start_date and End_Date input
I am using Jquery Datepicker. In on of my module (PHP) when i am trying to add package details i need to show the date picker with already selected dates in other color. So that admin will not use ...
4
votes
1answer
2k views
Jquery Date Picker On Multiple Input Fields
I have a page in which there are multiple input fields that is fromdate and todate. I have created dynamic ids and name. I have used jquery date picker.
Code:
<?php
$i=1;
...
0
votes
1answer
590 views
disable dates in jQuery datepicker with dates from MySQL
I'm trying to disable certain dates from jQuery datepicker. I know this subject is talked about often but usually only in regards to regulars dates such as holidays or weekends. I'd like to pull the ...
-1
votes
1answer
477 views
no space between date and time using jquery-ui date/time picker
hi i have a jquery date/time picker.. my problem is that it is displayed in
2011-05-045:36 PM
and i need help on how to do it as
2011-05-04 5:36 PM
i know its very easy for you guys but i cant ...
3
votes
2answers
2k views
how to change the date format in jquery date picker?
Hi
Hi i am using an date picker on selecting a date the date is displayed in this format
month/date/year ....
How to convert the date to this format year-month-date in date picker js itself