Remove spaces and add code tags to Dates Ranges
parent
b35cf94b50
commit
4b40042406
|
@ -260,19 +260,13 @@
|
|||
"id": "a19f0fbe1872186acd434d5a",
|
||||
"title": "Friendly Date Ranges",
|
||||
"description": [
|
||||
"Convert a date range consisting of two dates formatted as YYYY-MM-DD into a more readable format.",
|
||||
"",
|
||||
"The friendly display should use month names instead of numbers and ordinal dates instead of cardinal (\"1st\" instead of \"1\").",
|
||||
"",
|
||||
"Convert a date range consisting of two dates formatted as <code>YYYY-MM-DD</code> into a more readable format.",
|
||||
"The friendly display should use month names instead of numbers and ordinal dates instead of cardinal (<code>1st</code> instead of <code>1</code>).",
|
||||
"Do not display information that is redundant or that can be inferred by the user: if the date range ends in less than a year from when it begins, do not display the ending year. If the range ends in the same month that it begins, do not display the ending year or month.",
|
||||
"",
|
||||
"Additionally, if the date range begins in the current year and ends within one year, the year should not be displayed at the beginning of the friendly range.",
|
||||
"",
|
||||
"Examples: ",
|
||||
"Examples:",
|
||||
"<code>friendly([\"2016-07-01\", \"2016-07-04\"])</code> should return <code>[\"July 1st\",\"4th\"]</code>",
|
||||
"",
|
||||
"<code>friendly([\"2016-07-01\", \"2018-07-04\"])</code> should return <code>[\"July 1st, 2016\", \"July 4th, 2018\"]</code>.",
|
||||
"",
|
||||
"Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>Read-Search-Ask</a> if you get stuck. Try to pair program. Write your own code."
|
||||
],
|
||||
"challengeSeed": [
|
||||
|
|
Loading…
Reference in New Issue