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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:43:10+00:00 2026-05-31T10:43:10+00:00

How do I get my date to display like this: yy-mm-dd inside my date

  • 0

How do I get my date to display like this: “yy-mm-dd” inside my date input textbox after I have selected a date?

Information is reading from a database.
So I need it saved in a database again.

JavaScript:

<script>
  $(document).ready(function() {
  $("#from").datepicker();
});
</script>

Html code:

<div class="field">
        <label>Date</label>
       <input type="text" name="date" value="<?php value('date'); ?>" id="from" />   
        <?php if(isset($errors['date'])) { ?>
        <div class="error"><?php echo $errors['date']; ?></div>
        <?php } ?>
 </div>

Things that I have tried:

http://docs.jquery.com/UI/Datepicker#option-dateFormat

http://docs.jquery.com/UI/Datepicker/formatDate

jQuery UI DatePicker – Date Format

jquery ui datepicker date format

  • 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-31T10:43:11+00:00Added an answer on May 31, 2026 at 10:43 am

    Define the format during initialization

    $("#from").datepicker({
        dateFormat: 'yy-mm-dd'
    });
    

    The value is updated as well. See an example.

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

Sidebar

Related Questions

I am trying to customize date from my RSS feed to display like how
I have a DataRepeater with a GridView inside to display some tables from a
Lets say I have a string that represents a date that looks like this:
i use this code to get today's date and display it m_today = Calendar.getInstance();
I have a very simple XML file, that looks like this: <Data><Day Num=4197> <Date>270611</Date>
Im using the Datepicker control to get a date and display it in a
I know how to get a current date. but I want it to display
i am trying to get date from my implementation of jquery date picker, add
I am trying to get date from Jquery ui date-picker by dropping some events
i'm trying to get date from UIDatePicker (MM-dd format) and to check if its

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.