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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:35:07+00:00 2026-06-04T10:35:07+00:00

i got a problem with the datetimepicker from this site: http://trentrichardson.com/examples/timepicker/ this is the

  • 0

i got a problem with the datetimepicker from this site:

http://trentrichardson.com/examples/timepicker/

this is the js-code:

var dates = $("#ArrivalStartDatepicker").datetimepicker({

defaultDate: "+lw",

dateFormat: 'dd-mm-yy',

changeMonth: true,

numberOfMonths: 2,

ampm: true,

stepMinute: 10,

minuteGrid: 10,

onSelect: function (selectedDate) {

// var option = this.id == "ArrivalStartDatepicker" ? "minDate" : "maxDate",

// instance = $(this).data("datetimepicker"),

document.getElementById("TotalLabel").value = $.datetimepicker.parseDate('yy-mm-dd', '2012-05-23');

// instance.settings.dateFormat ||

// $.datetimepicker._defaults.dateFormat,

// selectedDate, instance.settings);

// dates.not(this).datetimepicker("option", option, date);

// document.getElementById("TotalLabel").value = date;

}

});  

here is my html-code
for the datetimepicker

<div class="txtTravel" id="DatetimePickerContainer1">
<input id="ArrivalStartDatetimepicker" type="text" name="datetimepicker" placeholder="dd-mm-yyyy hh:mm am"/>
</div>

this is the head of this .aspx-site

<%@ Page Title="GH" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="GH.aspx.cs" Inherits="GBCalc.GH" MaintainScrollPositionOnPostback="True"%>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link rel="stylesheet" type="text/css" href="Styles/timepicker.css" />
    <link href="Styles/base/jquery.ui.base.css" rel="stylesheet" type="text/css" />
    <link href="Styles/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />
    <link href="Styles/base/jquery.ui.theme.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        div.txtGeneral{position: relative; left: 110px; top: 55px; margin-top: 1.5px;}
        div.lblGeneral{position:relative; left: -6px; top: 75px; margin: 1.5px; font-size: small;}
        div.txtJob{position: absolute; top: 92px; left: 520px; }
        div.lblJob{position: absolute; top: 92px; left: 370px; font-size: small;}
        div.txtTravel{position: relative; left: 200px; top: 70px;}
        div.lblTravel{position: relative; left: 0px; top: 90px; margin: 1.5px; font-size: small;}
        div.txtWork{position: relative; left: 250px; top: 0px;}
        div.lblWork{position: relative; left: 20px; top: 20px; margin: 1.5px; font-size: small;}
        div.lblMisc{position: relative; left: -5px; top: -1px; margin: 1.5px; font-size: small;}
        div.txtMisc{position: relative; left: 170px; top: -20px;}
    </style>
    <script src="Scripts/ui/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="Scripts/ui/jquery-ui-1.8.20.custom.min.js" type="text/javascript"></script>
    <script src="Scripts/ui/jquery-ui-timepicker-addon.js" type="text/javascript"></script>
    <script src="Scripts/ui/molschaua.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

        <asp:DropDownList ID="SubsidiaryCalcDropDownList" runat="server" 
        ToolTip="Subsidiary maker of the Calculation">
        </asp:DropDownList>
        <br />
        <br /> 
    <div id="MyAccordion">

the problem is that the datetimepicker is shown if I open the site but as soon as I select a date or a time firebug throws an error called “$.datetimepicker is undefined”

this error is thrown in this line “document.getElementById("TotalLabel").value = $.datetimepicker.parseDate('yy-mm-dd', '2012-05-23');“

I wanted to passthrough the value I selected in the datetimepicker to my codebehind c# methods.
where is my problem?

I imported all of the needed js files and in my opinion i got the right order how I imported them.

greetz

Tobi

  • 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-06-04T10:35:08+00:00Added an answer on June 4, 2026 at 10:35 am

    The parseDate method is not from the plugin, it’s from jquery ui.
    Replace $.datetimepicker.parseDate(...) with $.datepicker.parseDate(...):

    document.getElementById("TotalLabel").value = $.datepicker.parseDate('yy-mm-dd', '2012-05-23');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got a problem with this linq query: from PersistedFileInfo fi in m_Database from
I've got problem with this peace of code, it should change lower case letters
i got problem with my code and hopefully someone able to figure it out.
I want to ask about strcpy. I got problem here. Here is my code:
Recently I've migrated from Wicket 1.4 to Wicket 1.5. I've got problem Panel with
I have got problem with this method: public List<int> menu_wid_w_kat() { DataSet1TableAdapters.menu_widac_wszystkoTableAdapter pk =
Hello I got problem with scroll on my grid. Here is the code (nothing
I got DateTimePicker control. I used the following code to set the format of
I got problem with two AJAX calls. I'm calling it from a jquery object.
Got problem with PDOStatement->fetch under symfony (v1.4.6) as while fetching records from statement first

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.