How to change the DateTimeFormat of a CalendarExtender

Posted on 2008-11-14
Last Modified: 2012-05-05
I have a CalendarExtender associated with a textbox control. When I choose a date from the CalendarExtender, the date is written with english day and month names.
My CalendarExtender is :
<ajax:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate"
            PopupButtonID="imgCalendar" Format="dddd dd. MMMM yyyy" FirstDayOfWeek="Monday" />

I live in Denmark and would like my users to see danish names. I've checked the Thread.CurrentThread.CurrentCulture property and it is set to da-DK which is my culture.

How can I change the CalendarExtender to display the proper date format?
Question by:ThomasCookScandinavia
    LVL 18

    Expert Comment

    LVL 18

    Accepted Solution

    the importent part is .EnableScriptGlobalization = True in the ScriptManager

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now