neat function... little more than is really needed... and I think it's not i18n, since many countries use Monday as their first day of week (much of the european union as I understand it), and I _think_ CF always returns Sunday as the first day of the week from DayOfWeek(). The java.util.Calendar class includes information to indicate if the calendar for a given locale begins on sunday or another day, but all the math is based on the assumption of sunday being day 1. Then again, I believe core Java doesn't include anything other than Gregorian calendars yet, and iirc there are 6 or so other calendars in common usage including Buddhist and Muslim. Not saying it's bad, just offering the info.
> or you can use this nice little UDF from cflib.org > http://www.cflib.org/udf.cfm?ID=330 > and rather than give it a +1 for next week, you can give > it a -1 for > last week and so on... > hth > tw s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://macromedia.breezecentral.com/p49777853/ http://www.sys-con.com/author/?id=4806 http://www.fusiontap.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202241 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54