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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:44:34+00:00 2026-06-14T06:44:34+00:00

So I have : <input ng-model=date1 ui-date> <div ng-model=date2 ui-date></div> It works great. The

  • 0

So I have :

<input ng-model="date1" ui-date>
<div ng-model="date2" ui-date></div>

It works great. The div calendar ‘date2’ will follow the change of its previous ui-date input, namely ‘date1’ the input box.

AngularUI did a great job, when you have multiple input+div calendars existing in one page, imagine a travel agent booking page, ‘date4’ will group with ‘date3’ automatically, ‘date6’ will group with ‘date5’ automatically …etc. well done.

However, in my sample code <input ng-model="date1" ui-date> only works in US format with back-slash delimiters ‘MM/dd/yyyy’.

My question is, how do I change the default input date format? If I want to have iso-8601 ‘yyyy-MM-dd’ as my input, ui-date doesn’t seem to recognise it as a valid input.

I tried ui-date="yyyy-MM-dd" it doesn’t seem to have any effects.

  • 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-14T06:44:36+00:00Added an answer on June 14, 2026 at 6:44 am

    Since this is a wrapper for the datepicker in jQueryUI, you should check the document here

    You can set it like this

    ui-date="{ dateFormat: 'yy-mm-dd' }"
    

    Here is the plunker

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

Sidebar

Related Questions

Hi I have a MVC create with: <div class=editor-label> @Html.LabelFor(model => model.Date) </div> <div
I have datetime input in my ASP.NET MVC3 app: <div class=editor-field> @Html.EditorFor(model => model.Article.PublishedDate)
I have a model that is something like this: class Input(models.Model): details = models.CharField(max_length=1000)
I have this <%=Model.StartDate%> <%=Html.Hidden(StartDate, Model.StartDate)%> it outputs: 2010-05-11 11:00:00 +01:00 <input type=hidden value=2010-03-17
I have input text: <div><label wicket:for=name>Name</label><input type=text wicket:id=name /></div> Now I need to add
i have input xml as <content> <date> <day>14</day> <month>06</month> <year>2012</year> </date> </content> want it
I have an input form for date input.I have used Datetime Picker for input
I have a model: class Cost(models.Model): project = models.ForeignKey(Project) cost = models.FloatField() date =
I am using Model binding with the Entity Framework and have an Html.TextBoxFor(model =>model.date)
I have a query like this: INSERT INTO some_table (date1, date2) VALUES (to_date('2012-10-24','YYYY-MM-DD'), to_date('2012-10-24','YYYY-MM-DD'));

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.