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
Post a Comment