Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Get Week number (french culture) (See related posts)

public static int weekNumber(DateTime dt) {
	CultureInfo culture = CultureInfo.CurrentCulture;
	int intWeek = culture.Calendar.GetWeekOfYear(dt, CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday);
	return intWeek;
}

Comments on this post

evitiello posts on Nov 04, 2005 at 12:50
This looks like it's for whatever the machine's culture is set to, not specifically French.

You need to create an account or log in to post comments to this site.


Click here to browse all 5141 code snippets

Related Posts