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

23rd
Sep 2015
metalek
@metalek
Sep 23 2015 15:08
hint
CamperBot
@camperbot
Sep 23 2015 15: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]

metalek
@metalek
Sep 23 2015 15:08
hint
CamperBot
@camperbot
Sep 23 2015 15: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]

metalek
@metalek
Sep 23 2015 15:08
hint
CamperBot
@camperbot
Sep 23 2015 15:08

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]

metalek
@metalek
Sep 23 2015 15:08
hint
CamperBot
@camperbot
Sep 23 2015 15:08

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]

metalek
@metalek
Sep 23 2015 15:08
hint
CamperBot
@camperbot
Sep 23 2015 15:08

hint [5/7]

Hint: 3

  • If you are using Date() to create instances of dates to work with, then use UTC time to avoid errors due to time zone difference between servers.

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