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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:03:32+00:00 2026-06-18T04:03:32+00:00

For my datetime field I used jQuery date/timepicker. http://trentrichardson.com/examples/timepicker/ This worked fine. But on

  • 0

For my datetime field I used jQuery date/timepicker.

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

This worked fine.

But on the update form, when I try to output date from database on this date/timepicker input field, it does not work. When I inspect the element the date value is there (in correct ui date/timepicker format) as shown in the image below:

Output issue on UI date/timepicker field

How can I make date value from PHP appear on datepicker field ?

  • 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-18T04:03:33+00:00Added an answer on June 18, 2026 at 4:03 am

    Instead of setting the value of the generated input field, pass in a defaultValue argument when you’re creating the picker. See the Options tab, other options, i.e.

    defaultValue
        Default: null - String of the default time value placed in the input on focus when the input is empty.
    

    This looks like it may only work when selected (e.g. it says “on focus”).

    Alternatively, while I’m not familiar with timepicker, you should be able to use the setDate() method to set the date/time, with something like this in a $(document).ready or similiar:

    $( ".selector" ).datetimepicker( "setDate", "<?php echo $time_date?>" );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using datimepicker (from: http://trentrichardson.com/examples/timepicker/ ) however I cannot save the picket date-time
I used the following code, but the DateTime field in SQL is represented as:
I'm having a date field of datatype datetime ,even though H:s:i is stored but
I have a datetime field like that. <field name=rel_date type=date indexed=true stored=true default=NOW multiValued=false/>
I have a sqlite3 database with a datetime field, the format of the date/time
I'm moving from an MS Access backend to mySQL. This used to work but
This is the page URL http://domain.com/testphp?id=1&mview=4 The choices are displayed from the table named
Which is the best datatype to be used for creating a datetime field like
I Used this Store procedure to return data from special date . my QueueDate
I have an application that used to insert a datetime field. There was an

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.