//27 <- today day number new Date().getDay() = new Date().getUTCDay() //<- 5 (friday)? what?
Do I need to analyze the result with .toString()or use something like YUI.Date.format()?
.toString()
YUI.Date.format()
You are looking for .getDate():
.getDate()
new Date().getDate();
.getDay() returns the day from 0 (Sunday) to 6 (Saturday).
.getDay()
The one you are looking for is .getDate()not.getDay()
Date Object Reference
You have to use
new Date().getDate()
getDay and getUTCDay returns the number of days of the week. You need getDate () and etUTCDate ()