These are chat archives for camperbot/bonfire-friendly-date-ranges

30th
Sep 2015
Scumworth
@Scumworth
Sep 30 2015 17:08
hint
CamperBot
@camperbot
Sep 30 2015 17:08

hint [1/7]

## :construction: After this are possible spoiler hints.

Make sure you've tried to hard to solve it yourself before proceeding. :construction:

type hint for next hint :pencil: [Contribute at the FCC Wiki]

Scumworth
@Scumworth
Sep 30 2015 17:08
hint
CamperBot
@camperbot
Sep 30 2015 17:08

hint [2/7]

# Problem Explanation:

  • Create a program that will take two dates and convert them into a more easy to understand date such as January 1st, 2017. It will also check the difference between them, and handles cases with no difference, more than a day, more than a month, more than a year, and more than a month and less than a year respectively.

type hint for next hint :pencil: [Contribute at the FCC Wiki]

Scumworth
@Scumworth
Sep 30 2015 17:09
hint
CamperBot
@camperbot
Sep 30 2015 17:09

hint [3/7]

Hint: 1

  • Split the string into an array where you get the "YYYY", "MM", "DD"

type hint for next hint :pencil: [Contribute at the FCC Wiki]

Scumworth
@Scumworth
Sep 30 2015 17:09
hint
CamperBot
@camperbot
Sep 30 2015 17:09

hint [4/7]

Hint: 2

  • You need to handle the case for "st", "nd", and "th". Note that 13 is "th" not "rd".

type hint for next hint :pencil: [Contribute at the FCC Wiki]