Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Calendar Extender not changing the month...

  • 17-02-2011 3:41pm
    #1
    Registered Users, Registered Users 2 Posts: 3,992 ✭✭✭


    <asp:Panel ID="pnlStartDate" runat="server" Visible="false">
                                                <span class="label">
                                                    <asp:Literal ID="litStartDate" runat="server" Text="<%$ Resources:LocalizedText, CO_StartDate%>" /></span>
                                                <br />
                                                <asp:TextBox ID="txtStartDate" runat="server" />
                                                <asp:ImageButton ID="ibStartDate" runat="server" ImageUrl="~/Images/Panels/Calendar_scheduleHS.png" />
                                                <cc1:CalendarExtender   ID="ceStartDate" 
                                                                        runat="server" 
                                                                        TargetControlID="txtStartDate"
                                                                        PopupPosition="Right" 
                                                                        Format="dd/mm/yyyy"
                                                                        PopupButtonID="ibStartDate"/>
                                                <asp:CustomValidator    ID="cvStartDateTypeCorrection" 
                                                                        runat="server" 
                                                                        ErrorMessage="CustomValidator"
                                                                        ClientValidationFunction="CheckStartDate" 
                                                                        ControlToCompare="ceStartDate" 
                                                                        ValidationGroup="ModalCorr">*</asp:CustomValidator>
                                                <asp:RequiredFieldValidator ID="rfvStartDate" runat="server" ErrorMessage="<%$ Resources:LocalizedText, CDP_YouMustSelectAStartDate%>"
                                                    ControlToValidate="txtStartDate" ValidationGroup="ModalCorr">*</asp:RequiredFieldValidator>
                                                &nbsp;</asp:Panel>
    

    Basically whats happening is when i select a date, the month doesnt change from teh initial setting which is 17/01/2011

    So if i select 14th feb,

    it changes to 14/01/2011...

    The year and day change fine its just the month value... any ideas?

    Cheers


Comments

  • Registered Users, Registered Users 2 Posts: 3,992 ✭✭✭Korvanica


    Sorted it...


    Format="dd/mm/yyyy"

    should have been

    Format="dd/MM/yyyy"

    //god i love coding....


Advertisement