开发者

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");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜