If I understood your question correctly then you are looking the way to get the day of week in js.
// get the last modified date and pass that to the following function. //this will return a number XtkLibrary.WeekDay(date);
if this is not available in your js(despite of loading correct dependency) then you can use following:
WeekDay: function(ts) { if( ts === null ) return null; var date = new Date(ts); var res = date.getDay(); // JS is 0 for Sunday, whereas funclist is 0 for Monday if( res == 0 ) return 6; return (res-1); }
then you can use your business logic accordingly.