Skip to content

Instantly share code, notes, and snippets.

@arahansa
Created September 8, 2015 09:55
Show Gist options
  • Save arahansa/d4452422ae30cb4d110a to your computer and use it in GitHub Desktop.
Save arahansa/d4452422ae30cb4d110a to your computer and use it in GitHub Desktop.
function caculateLimitDay(elaspedDay){
//parseInt("10")
var today = new Date();
var t = new Date(today);
t.setDate(today.getDate()+elaspedDay);
var text = t.getFullYear() + "."+(t.getMonth() + 1) + "." + t.getDate() +" " + t.getHours() +":"+t.getMinutes()+"까지";
return text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment