//27 <- today day number
new Date().getDay() = new Date().getUTCDay() //<- 5 (friday)? what?
Do I have to parse the result with .toString() or use something like YUI.Date.format()?
//27 <- today day number
new Date().getDay() = new Date().getUTCDay() //<- 5 (friday)? what?
Do I have to parse the result with .toString() or use something like YUI.Date.format()?
You're looking for .getDate():
new Date().getDate();
.getDay() returns the day number 0 (Sunday) to 6 (Saturday).
getDay and getUTCDay returns the number of the weekday. You need getDate() and etUTCDate()