Created
July 26, 2012 06:38
-
-
Save hissy/3180603 to your computer and use it in GitHub Desktop.
Get Date String Japanese Style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getDateStringI18n(string){ | |
var parts = String(string).split(/[- :]/); | |
var newString = parts[0] + '年' + parts[1] + '月' + parts[2] + '日'; | |
return newString; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment