Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7569753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:14:43+00:00 2026-05-30T15:14:43+00:00

I have a date picker: <link rel=stylesheet type=text/css href=/css/jquery-ui-1.8.17.custom.css/> <script src=/js/jquery-1.7.1.min.js></script> <script src=/js/jquery-ui-1.8.17.min.js></script> <div

  • 0

I have a date picker:

<link rel="stylesheet" type="text/css" href="/css/jquery-ui-1.8.17.custom.css"/>

<script src="/js/jquery-1.7.1.min.js"></script>
<script src="/js/jquery-ui-1.8.17.min.js"></script>

<div id="pickerdiv"></div>

<script>
$(document).ready(function(){
    $('#pickerdiv').datepicker({
        beforeShowDay: function(date){
            //some code
            return [true, ''];
        }
    });
});
</script>

The problem is that date picker always sends in an invalid date. Today is feb 29th and the date it sends is always Jan 29th. In addition chrome’s debugger says its type is “Invalid Date”. I’ve also tried switching it from a div to an input with the same result.

Is there any way to get a valid date sent into my beforeShowDay function? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:14:45+00:00Added an answer on May 30, 2026 at 3:14 pm

    Seems to work fine for me: http://jsfiddle.net/y5FbY/

    Watch the console output.

    It should be noted that this is called as it renders each day onto the calendar, as well as some non-visible days. It starts one month prior to today (Jan 29th) and goes until the end of the current week, I think (Mar 3rd). You are simply seeing the first call of many.

    That is my guess, but you may be seeing something else. It’s difficult to say without a working example of your situation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have this code for a datetime picker <link type=text/css href=css/ui-lightness/jquery-ui-1.7.2.custom.css rel=stylesheet /> <script
I have a Date Input text box generated by jquery Date Picker which is
I have been testing and playing around with jquery date picker below. http://jqueryui.com/demos/datepicker/ on
I need to limit the jquery ui date picker to only have future Tuesdays
jquery UI date picker puts a text on top of a button instead of
http://docs.jquery.com/UI/Datepicker i want to have a link with the choosen date to click at
I have been using the jQuery date picker for a while and its great.
Here's the literal HTML markup I have: <!DOCTYPE html> <html> <head> <title>Register</title> <link href=/Content/Site.css
I have a date picker library written for MooTools that I want to port
I have a requirement to use date picker in my applicaiton. I have lot

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.