locked
Gregorian calendar – but in Arabic: RRS feed

  • Question

  • User795661788 posted

    Hi All,

    i need to have a calender which is arabic, based upon Gregorian calendar  not Islamic , can any help me out in this.

    CultureInfo culInfo = new System.Globalization.CultureInfo("ar-SA")

     

    Regards,

    Jaipal

    Monday, July 4, 2011 4:20 AM

Answers

  • User-276842610 posted

    Hi Jaipal,

    Thanks for your post.

    i need months to be displayed.

    I am providing a sample of Calendar to display month default  please refef:

    <asp:TextBox ID="txtDateTime" runat="server"></asp:TextBox>
        <ajaxToolKit:CalendarExtender BehaviorID="myCalendarBehavior" OnClientShowing="setCalendarMode"
            ID="CalendarExtender1" runat="server" PopupButtonID="btnShowCalendar" TargetControlID="txtDateTime"
            Format="MMM dd, yyyy" />
        <asp:Button ID="btnShowCalendar" runat="server" Text="show"></asp:Button>
        <script type="text/javascript">
            function setCalendarMode() {
                var CalendarBehavior = $find("myCalendarBehavior");
                CalendarBehavior._switchMode("months", true);
            }
        </script>

    hope this helps, thanks.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, July 7, 2011 2:08 AM

All replies

  • User-1637433209 posted

    see this link

    http://forums.asp.net/t/1507681.aspx

    Monday, July 4, 2011 7:20 AM
  • User795661788 posted

    Thanks for the update Manish , but this might now work for me as i need an Gregorian calendar  in arabic text. to be more precise , i need months to be displayed.

     

    Regards,

    jaipal

    Monday, July 4, 2011 11:03 AM
  • User-276842610 posted

    Hi Jaipal,

    Thanks for your post.

    i need months to be displayed.

    I am providing a sample of Calendar to display month default  please refef:

    <asp:TextBox ID="txtDateTime" runat="server"></asp:TextBox>
        <ajaxToolKit:CalendarExtender BehaviorID="myCalendarBehavior" OnClientShowing="setCalendarMode"
            ID="CalendarExtender1" runat="server" PopupButtonID="btnShowCalendar" TargetControlID="txtDateTime"
            Format="MMM dd, yyyy" />
        <asp:Button ID="btnShowCalendar" runat="server" Text="show"></asp:Button>
        <script type="text/javascript">
            function setCalendarMode() {
                var CalendarBehavior = $find("myCalendarBehavior");
                CalendarBehavior._switchMode("months", true);
            }
        </script>

    hope this helps, thanks.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, July 7, 2011 2:08 AM