Is there any way to have the displayed date on the DatePicker to be formatted as YYDDD? Example: 04/26/2017 will become 17116. I would like to keep the selected date to be 04/26/2017 but have the ordinal date displayed to the user.
I have decided to attack this a different way, but ran into a different issue now. I have decided to change the date displayed in the calendar to the user using the CalendarDayTemplate and SpecialDays. However, I am trying to add these components from the codebehind.
HtmlGenericControl div = new HtmlGenericControl("DIV");
div.InnerText = "94";
div.Attributes["class"] = "centered";
dt.ID = "dt1";
dt.Controls.Add(div);
rcd.Date = new DateTime(2017, 4, 1);
rcd.TemplateID = "dt1";
cal.CalendarDayTemplates.Add(dt);
cal.SpecialDays.Add(rcd);
}
My intent is to use this in a loop to set all the days of the month. What am I doing wrong or is there a better way to show it. I want it to look and behave like the attached photo.