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 5989203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:04:06+00:00 2026-05-22T23:04:06+00:00

For some reason when I load the Calendar it’s opening on date … July

  • 0

For some reason when I load the Calendar it’s opening on date … July 1906

Here is the code:

var thisTheme = o.pickPageButtonTheme;

var fd=1+self.theDate.getMonth() +'/'+ today+'/'+self.theDate.getFullYear();

if ( ( today === highlightDay || today === presetDay || dates.contains(fd) ) ) { thisTheme = o.pickPageHighButtonTheme; }




                            $('<div><a href="view-paginated.php#&ui-page=Event-Date--2011-01-31-0">' + today + '</a></div>')

                                .addClass('ui-datebox-griddate ui-corner-all ui-btn-up-'+thisTheme)
                                .attr('data-date', today)
                                .appendTo(thisRow)
                                .click(function(e) {
                                    e.preventDefault();
                                    self.theDate.setDate($(this).attr('data-date'));
                                    self.input.val(self._formatDate(self.theDate));
                                    self.close();
                                    self.input.trigger('change');
                                }).hover(
                                    function() { $(this).addClass('ui-btn-down-'+thisTheme).removeClass('ui-btn-up-'+thisTheme); },
                                    function() { $(this).addClass('ui-btn-up-'+thisTheme).removeClass('ui-btn-down-'+thisTheme); }
                                );
                            today++;
                        }
                    }

And the other part of the code is here:

 <input value="1-1-2011" name="date" type="date" data-role="datebox" id="date" data-theme="a" data-options='{"mode": "calbox", "pickPageTheme": "a", "pickPageHighButtonTheme": "e", "setDateButtonLabel": "Calendar"}'/>

It seems to be related to the FormatDate.

How can I change this please?

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-22T23:04:06+00:00Added an answer on May 22, 2026 at 11:04 pm

    Well, why it picked 1906 is beyond me – but you arbitrarily picked a date format, you’ll need to let datebox know about it before it will pick it up. Give something like this a shot and see if it works:

    <input value="1-1-2011" ... data-options='{"dateFormat":"mm-dd-YYYY", "mode": "calbox", "pickPageTheme": "a", "pickPageHighButtonTheme": "e", "setDateButtonLabel": "Calendar"}'/>
    

    dateFormat takes the following:

    • YYYY : 4 Digit Year
    • MM : 2 Digit Month (zero pad)
    • mm : 1 or 2 Digit Month
    • DD : 2 Digit Day (zero pad)
    • dd : 1 or 2 Digit Day

    Additionally, DateBox has had some pretty serious modifications done to how it detects dates, but please let me know if it persists, I’ll try to duplicate and correct it.

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

Sidebar

Related Questions

I have this simple ajax code, for some reason it wont load content onto
I have this code in the page load...For some reason the dropdown binds to
Here is my hibernate config, but for some reason it fails to load those
for some reason, whenever I dynamically load a swf on a $(document).ready() by writing
I am using LoadFrom(), to load dlls, but for some reason this load function
.load() was working fine, but for some reason it's not in Chrome now (presumably
I'm trying to load png images into my game, but for some reason it
For some reason, my code displays correctly in all browsers except IE8. <form dojoType=dijit.form>'
I had to take my working example here. For some reason, it does not
For some reason jQuery won't load on my website. I've tried it in google

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.