o-date

JS

Utility for formatting and updating dates

View on GitHub

Quick start

Using the build service

Add the following token to your script tag (how do I do that?):

o-date@^2.8.0

For more information see the Origami build service.

Using a manual build process

Run the following command in the root directory of your project, to add this dependency to your bower.json file:

bower install --save "o-date"@"^2.8.0"

For more information see the Origami build process.

declarative


			

Date will be set using the string in the datetime attribute and rendered as an absolute date as it was over a year ago.

imperative


			

We're setting the datetime attribute on both date elements imperatively and these are then rendered as relative dates

Component information

Latest stable version:
2.8.0 (4 months, 8 days old)
Status (Learn more):
Active (as of 2.8.0)
Bundle sizes:
5,073b JavaScript 81b CSS
This version
2.8.0 (4 months, 8 days old)
Support status (Learn more):
Active (as of 2.8.0)
Last indexed
14 Dec 2016 11:51:27 (Build now)
Installable?
OK
Dependencies
None
Dependents
alphaville-marketslive-chatalphaville-most-recent-postalphaville-uifastft-api-clientn-uin-ui-foundationso-chat

Contact

To talk to the team you can contact the Origami team on Slack channel #ft-origami or directly by email at origami-support@ft.com

Report an issue

Origami