protected void Page_Load(object sender, EventArgs e)
        {
            int Year = DateTime.Now.Year;
            int Day = DateTime.Now.Day;
            int Month = DateTime.Now.Month;

            string[] mYear = Context.Request.QueryString.GetValues("year");

            if (mYear != null)
            {
                if (mYear[0] != null)
                {
                    Year = Convert.ToInt32(mYear[0]);
                }
            }

            string[] mDay = Context.Request.QueryString.GetValues("day");

            if (mDay != null)
            {
                if (mDay[0] != null)
                {
                    Day = Convert.ToInt32(mDay[0]);
                }
            }

            string[] mMonth = Context.Request.QueryString.GetValues("month");

            if (mMonth != null)
            {
                if (mMonth[0] != null)
                {
                    Month = Convert.ToInt32(mMonth[0]);
                }
            }

            SharpDiscordianDate Date = new SharpDiscordianDate(new DateTime(Year,Month,Day));

            Response.Clear();

            Response.Write(Date.ToString());
        }
        public string GetDiscordianDate(int year, int month, int day)
        {
            SharpDiscordianDate Date = new SharpDiscordianDate(new DateTime(year, month, day));

            return Date.ToString();
        }
        public string GetCurrentDiscordianDate()
        {
            SharpDiscordianDate Date = new SharpDiscordianDate(new DateTime(2009, 2, 23));

            return Date.ToString();
        }
Exemple #4
0
        static void Main(string[] args)
        {
            SharpDiscordianDate Date = new SharpDiscordianDate(new DateTime(2009,2,23));

            Console.WriteLine(Date.ToString());
        }
Exemple #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SharpDiscordianDate Date = new SharpDiscordianDate();

            TodayDDate.Text = Date.ToString();
        }