7 kyu
Date formatter
142LeTysker
Description:
You are to implement a getDate function, which takes a unix timestamp and a locale as input and returns the formatted date based on the locale.
the locale formats to use are stored in the preloaded structure formats
. For example,
Example:
getDate(1481020142, 'en-GB') -> '06/12/2016' (format->'dd/mm/yyyy')
getDate(1481020142, 'de-DE') -> '06.12.2016' (format->'dd.mm.yyyy')
getDate(1481020142, 'hu-HU') -> '2016. 12. 06.' (format->'yyyy. mm. dd.')
little hint: don't choose the hard way
Date Time
Fundamentals
Similar Kata:
Stats:
Created | Dec 6, 2016 |
Published | Dec 6, 2016 |
Warriors Trained | 714 |
Total Skips | 9 |
Total Code Submissions | 1471 |
Total Times Completed | 142 |
JavaScript Completions | 142 |
Total Stars | 13 |
% of votes with a positive feedback rating | 72% of 56 |
Total "Very Satisfied" Votes | 35 |
Total "Somewhat Satisfied" Votes | 11 |
Total "Not Satisfied" Votes | 10 |
Total Rank Assessments | 7 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |