Escolar Documentos
Profissional Documentos
Cultura Documentos
(anyo
(anyo
(anyo
(anyo
(anyo
(anyo
if
if
if
if
if
>=
>=
>=
>=
>=
>=
1583
1700
1800
1900
2100
2200
&&
&&
&&
&&
&&
&&
anyo
anyo
anyo
anyo
anyo
anyo
<=
<=
<=
<=
<=
<=
1699)
1799)
1899)
2099)
2199)
2299)
{
{
{
{
{
M
M
M
M
M
{
23;
23;
24;
24;
25;
=
=
=
=
=
M
N
N
N
N
N
=
=
=
=
=
=
22; N = 2; }
3; }
4; }
5; }
6; }
0; }
domingo = GetEasterSunday(2014);
jueves = domingo.AddDays(-3);
viernes = domingo.AddDays(-2);
lunes = domingo.AddDays(+1);
//Console.WriteLine(domingo);
Console.WriteLine("Jueves Santo -> " + jueves.ToShortDateString());
Console.WriteLine("Viernes Santo -> " + viernes.ToShortDateString());
Console.WriteLine("Lunes de Pascua -> " + lunes.ToShortDateString());
}
Esta es la salida al ejecutar el cdigo anterior.
// Jueves Santo -> 17/04/2014
// Viernes Santo -> 18/04/2014
// Lunes de Pascua -> 21/04/2014
/////////////////////////////////////////////////////