Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Add support for <input type="week"/> #5423

Closed
wants to merge 3 commits into from

Conversation

benlesh
Copy link
Contributor

@benlesh benlesh commented Dec 16, 2013

This is to add support for the week input type. This follows the HTML5 spec which specifies using ISO-8601 standards for identifying dates. As such, the date output to the model is the Thursday of the week. Per ISO-8601, the "first week" of the year is whatever week has the first Thursday of the year.

Also added output for week-of-the-year to $filter('date'). This allows the date of the year to be output as follows:

 var value = new Date(2013, 0, 12); // Jan 12, 2013
 console.log($filter('date')(value, 'yyyy-Www'); // 2013-W01

@benlesh
Copy link
Contributor Author

benlesh commented Dec 16, 2013

Again, I'm not sure how you'd like me to separate these PRs, but I'm sure I can do some Git gymnastics to separate them if necessary.

@benlesh
Copy link
Contributor Author

benlesh commented Dec 16, 2013

This is associated with PR #5256 and #5422

@benlesh
Copy link
Contributor Author

benlesh commented Dec 16, 2013

Also, as I noted in the other PR, I noticed the scenarios for the documentation are failing. It's late though, so I'll fix those sometime soon.

@ghost ghost assigned matsko Dec 20, 2013
Add support to date filter for outputing week of year

Partially closes angular#757
@benlesh
Copy link
Contributor Author

benlesh commented Jan 17, 2014

closed in favor of #5864

@benlesh benlesh closed this Jan 17, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants