Calendar post back value to date format

Jore

Newcomer
Joined
Jan 24, 2005
Messages
18
Location
Almost polar
Hi!

I have a calendar control in a web page header section which is a user control (header.ascx). I need the date from the calendar in the real page (eg. dates.aspx). Now I have found no other working way to submit the selected date to the base page but setting the autopostback=ture in the calendar. Well the calendar sends the date as counted from 1/1/2000 to the current date. Eg. today it gives 1850.

How can I convert this (1850) value to normal date value like 1/24/2005. The calendar control that sends it from header.ascx is not visible to the basic page (dates.aspx). so I can't use anything like calendar1.SelectedDate.ToShortDateString().

--Jore
 
Back
Top