Skip to content

Instantly share code, notes, and snippets.

@hissy
Created July 26, 2012 06:38
Show Gist options
  • Save hissy/3180603 to your computer and use it in GitHub Desktop.
Save hissy/3180603 to your computer and use it in GitHub Desktop.
Get Date String Japanese Style
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