I want to add Day name to the date provided by the AJAX calendar extender. An output example would be Wednesday 2/20/2013. Although a shortened day example is certainly acceptable like Wed 2/20/2013. Ideally there is a simple format string to add to the
control's html. However, code behind (JavaScript or VB) could work too. I've searched the forums and found a number of suggestions for formatting the calendar extender, but nothing that adds the day name to its output without a time component. Am I attempting
the impossible? Thank you for any ideas or suggestions you wish to provide, they are greatly appreciated...................Phil Hoop
philhoop
Member
30 Points
87 Posts
How do I format date from Ajax Calendar Extender as Day dd/mm/yyyy
Feb 20, 2013 02:28 PM|LINK
I want to add Day name to the date provided by the AJAX calendar extender. An output example would be Wednesday 2/20/2013. Although a shortened day example is certainly acceptable like Wed 2/20/2013. Ideally there is a simple format string to add to the control's html. However, code behind (JavaScript or VB) could work too. I've searched the forums and found a number of suggestions for formatting the calendar extender, but nothing that adds the day name to its output without a time component. Am I attempting the impossible? Thank you for any ideas or suggestions you wish to provide, they are greatly appreciated...................Phil Hoop
Nasser Malik
Star
11178 Points
1710 Posts
Re: How do I format date from Ajax Calendar Extender as Day dd/mm/yyyy
Feb 20, 2013 02:49 PM|LINK
You can simply add format to calender extender
<asp:TextBox runat="server" ID="TextBox3" /> <ajax:CalendarExtender runat="server" ID="TextBox3_CalendarExtender" TargetControlID="TextBox3" Enabled="True" PopupPosition="BottomLeft" FirstDayOfWeek="Monday" Format="dddd MM/dd/yyyy" />This will out as Wednesday 2/20/2013
Skype: maleknasser1
philhoop
Member
30 Points
87 Posts
Re: How do I format date from Ajax Calendar Extender as Day dd/mm/yyyy
Feb 20, 2013 07:47 PM|LINK
Naser: Terrific! Thank you..............................Phil Hoop