Two CalendarExtenders?
I have a popup ajax calendarextender that populates a text box with the selected date, (MM/dd/yyyy). This works. I want to capture the same date in an additional text box with a different format (yyyyMMdd). The first is for display and the second date is 开发者_StackOverflow社区a parameter for gridview query. Is this done with two calandarextenders? (btw I'm using C#)
If you are supplying one to a query, you could just change the parameter value in code before supplying it to the query.
var datetimeForQuery = extenderVariable.SelectedDate.ToString("yyyyMMdd");
精彩评论