Blog graphic

Years Custom URL Scheme

Posted on 09 September 2010

The Years custom URL scheme allows other apps or web pages to launch Years and optionally select a date.

If you have Years installed tap any of the links below to try it for yourself. You could also type the URL into the Safari address bar.

Any invalid values will revert to the nearest valid value or ignored, e.g. for a month, 0 becomes 1 and 14 becomes 12.

Here's an example how you might use it on your web page:

<a href="Years://date?year=2009&month=7">July 2009</a>

or in your iOS app:

NSURL *url = [NSURL URLWithString:@"Years://date?year=2009&month=7"]; [[UIApplication sharedApplication] openURL:url];

If your an iOS developer and your using the Years URL Scheme, we'd love to hear from you.