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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:39:31+00:00 2026-05-30T14:39:31+00:00

My code : $(‘#datepicker’).datepicker({ inline: true, onSelect: function(dateText, inst) { var d = new

  • 0

My code :

  $('#datepicker').datepicker({
        inline: true,
        onSelect: function(dateText, inst) {
            var d = new Date(dateText);
            alert("DateText=>"+ dateText + "," + "DATE =>" + d);
            $('#calendar').fullCalendar('gotoDate', d);
        }
    }); 
})

My error :

Picture showing error.

My problem is that the function is being passed dateText from fullCalendar in the form dd/mm/yyyy…it is then creating a new date using this and it is messing it up, thinking that the date should be in the form mm/dd/yy. Can anyone help me fix this please?

  • 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-30T14:39:32+00:00Added an answer on May 30, 2026 at 2:39 pm

    You are alerting the dateText but passing a date object to calendar. Look at FullCalendar API for format of ‘gotDate’ argument. You can use

    d.getFullYear(), d.getMonth() and d.getDate() to convert
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Code inside Actionscript: var methodName4:String = startupload; var instance4:Object = null; var method4:Function =
code 1 $(document).ready(function() { $('.poem-stanza').addClass('highlight'); }); code 2 $(document).ready( $('.poem-stanza').addClass('highlight'); );
Code: var result = db.rows.Take(30).ToList().Select(a => AMethod(a)); db.rows.Take(30) is Linq-To-SQL I am using ToList()
Code bellow will create eventstore for named connection. var es = Wireup.Init() .UsingSqlPersistence(DB) .Build();
Code below sets default values for new row if row is added using form.
Code: if (!IDTextField.value && !FirstNameField.value && !LastNameField.value && !DateOfBirthField.value!GenderField.value) { alert('No criteria Added'); return;
code id date time difference AiK4JJ kcy2000ok 2012-01-31 17:25:41 13 unBG1D gktoql 2012-01-31 17:25:35
Code like: ...text <span contenteditable=true onChange=someFunction()>blah blah</span> text... The onChange event doesn't work. (at
Code: function _() { echo 'hello word'; } Output: Fatal error: Cannot redeclare _()
Code double timeout_in_hours = 6.0; MyDataContext db = new MyDataContext(); using (TransactionScope tran =

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.