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

  • Home
  • SEARCH
  • 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 6998399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:24:25+00:00 2026-05-27T20:24:25+00:00

When specifying a date format for the jQuery UI datepicker YY is a 4

  • 0

When specifying a date format for the jQuery UI datepicker YY is a 4 digit year and Y is a 2 digit year:

YY = 2011
Y = 11

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

Was curious why this is.

  • 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-27T20:24:25+00:00Added an answer on May 27, 2026 at 8:24 pm

    All of the single character variations (d, m, y) are the short version. Double is long version. Since the short version of a year is two digits, using yy specifies the long version, which is four digits. The format is not directly related to the number of digits that the date outputs.
    Just as M (single) means: “Jan, Feb, Mar, Apr”, and MM (double) means: “January, February, March, April”. The same goes for all of the format chars.

    This is unlike the standard format for PHP, which may confuse some.

    The chosen format was to meet the web standards (RFC)s for date formatting.

    See: RFC-822

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

Sidebar

Related Questions

Following code does not work - new Date(2011-10-01) What is the format of specifying
Suggest any Asp.net control for adding date of birth by specifying day,month & year
Consider the following code: echo $this->Form->year('expiry',date('Y'),date('Y')+2) This produces output something like: 2013 2012 2011
When specifying a date: datetime.datetime(2011, 8, 15) How can i get to know that
I have a standard Jquery date picker which shows 2 textboxes. One textbox has
I'd like to define a time of day, without necessarily specifying a year, month,
Is there a way to get the UTC timestamp by specifying the date? What
By specifying -lib foo.jar to ant I get the behaviour that the classes in
I'm specifying my doctype as xhtml strict, but it's being sent over the wire
I'm specifying a color hex code as the background-color of a really long div.

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.