• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
LeTysker Avatar
Name:Unknown
Clan:Clan Schnabelschaumraumschiff
Member Since:Dec 2016
Last Seen:Nov 2021
Profiles:
    Following:2
    Followers:2
    Allies:2
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (13)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • 1Stas
      • commented on "Date formatter" kata
      • 5 years ago
      Aaaa console.log(formats) use it ))
      
    • Custom User Avatar
      • ozichukwu
      • commented on "Date formatter" kata
      • 5 years ago

      If you need a tip to solve this kata (i did), stop trying Date.toLocaleDateString or any Date method. Use a different approach ;)

      And IMO, it's not 7kyu

    • Custom User Avatar
      • Alfabetix
      • commented on "Date formatter" kata
      • 5 years ago

      Really sorry. I don't know what what description I was reading when I left the comment. I will triple check description next time.

    • Custom User Avatar
      • Chrono79
      • commented on "Date formatter" kata
      • 5 years ago

      the locale formats to use are stored in the preloaded structure formats.

      Isn't that already in the description?

    • Custom User Avatar
      • Alfabetix
      • commented on "Date formatter" kata
      • 5 years ago

      Should be stated in the description that formats are provided

    • Custom User Avatar
      • Chrono79
      • commented on "Date formatter" kata
      • 5 years ago

      See ZozoFouchtra post below.

    • Custom User Avatar
      • samfilip
      • commented on "Date formatter" kata
      • 5 years ago

      Seems like this was never done? It isn't working for me 4 years later and still very few have completed this kata.

    • Custom User Avatar
      • Jackyjk
      • created a question for "Date formatter" kata
      • 5 years ago

      Why I can't use Date.prototype.toLocaleDateString(loc)to change the time place.
      For example, at my vscode -> getDate(1481020142, "ko-KR") output:2016. 12. 6.
      but when I test the case. output:2016-12-6
      why ???

    • Custom User Avatar
      • G_kuldeep
      • commented on "Date formatter" kata
      • 5 years ago

      approved

    • Custom User Avatar
      • Voile
      • commented on "Date formatter" kata
      • 8 years ago

      I also fixed the author's random tests (it's testing the user solution against... itself, so it's always vacuously true.)

    • Custom User Avatar
      • Voile
      • commented on "Date formatter" kata
      • 8 years ago

      For the reference: https://github.com/Codewars/codewars-runner-cli/issues/527

    • Custom User Avatar
      • LeTysker
      • commented on "Date formatter" kata
      • 9 years ago

      I guess you're right. I'll add it along with random tests.
      Thanks for the feedback! =)

    • Custom User Avatar
      • ZozoFouchtra
      • created a suggestion for "Date formatter" kata
      • 9 years ago

      It seems .toLocaleDateString doesn' t work ( Intl.DateTimeFormat.supportedLocalesOf returns an empty array ) so I think it would be better to add your formats object in "Preload" section to let warriors use it. This way they'll be able to format output strings.

      May the Code be with you!
      ; ) )

    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...