Date number javascript -


i'd make smart name in our automation engine javascript show last number of year , current week's number. this: 520

function f () { var today = new date(); var weekno = today.getweek(); return weekno; } f (); 

this co-worker's try. idea?

get week

 var today = new date();  var weekno = today.getweek(); 

get year

 var weekno = new date().getfullyear() 

subtring value that

var str = "hello world!"; var res = str.substring(1, 4); 

and combine both that

var str1 = "hello "; var str2 = "world!"; var res = str1.concat(str2); 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -