Can somebody help me in getting last Monday date variable / function.
If you find a solution for your specific task, please feel free to post it here, and I can add it to the storeEval page
just wanted to let you know that I used one of the snippets … and improved it a little.
The snippet for current date (… date in YYYY-MM-DD format) is not 100% correct as it returns the day as a single digit when it is less then 10 (YYY-MM-D).
Also I found that it can be a lot shorter by using the slice() method…
“var now = new Date(); var m=(‘0’+(now.getMonth()+1)).slice(-2); var d=(‘0’+now.getDate()).slice(-2); now.getFullYear()+”-"+m+"-"+d;"