Ad
  • Custom User Avatar

    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 ???

  • Default User Avatar

    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!
    ; ) )