
12/08/2008, 15:44
|
 | Colaborador | | Fecha de Ingreso: septiembre-2007 Ubicación: San Francisco, United States
Mensajes: 3.858
Antigüedad: 17 años, 6 meses Puntos: 87 | |
Respuesta: Obtener el Numero de la Semana DateTime date = new DateTime(2003,12,31);
System.Globalization.CultureInfo norwCulture =
System.Globalization.CultureInfo.CreateSpecificCul ture("es");
System.Globalization.Calendar cal = norwCulture.Calendar;
int weekNo = cal.GetWeekOfYear(date,
norwCulture.DateTimeFormat.CalendarWeekRule,
norwCulture.DateTimeFormat.FirstDayOfWeek);
// Show the result
this.textBox1.Text = weekNo.ToString();
algo asi funciona |