---
title: "Localize date formats for SXA search"
slug: "localize-date-formats-for-sxa-search"
abstract: "Learn how to install a local datepicker."
---
# Localize date formats for SXA search

SXA lets you use search renderings, such as the Filter (Date) rendering, to allow visitors to refine search results based on dates. To be able to display localized date formats, weekday names, and month names, you can download datepickers in a specific language from github and add them to your SXA site theme(s). 

To install a local datepicker:

1. Download the relevant file from  [github](https://github.com/jquery/jquery-ui/tree/master/ui/i18n).
2. Open the file and change:

    `factory( jQuery.datepicker );`

    to

    `factory( $xa.datepicker );` 

3. Save the file.
4. To make the local datepicker available on your pages:
    - **For all themes** - upload the file to */sitecore/Media Library/Base Themes/Core Libraries/scripts* and position it after **xaquery**.
    - **For a specific theme** - upload the file to the *Scripts* folder of that theme. 

        ![SXA-language-scripts-calendar.PNG](https://doc.sitecore.com/api/markdown-image/xp/en/developers/sxa/105/sitecore-experience-accelerator/images/SXA-language-scripts-calendar.PNG)

5. Switch the language of your site or page, refresh the page in Experience Editor, and go to Preview mode. You can see the calendar displays in the correct language.

    ![SXA-calendar-language.PNG](https://doc.sitecore.com/api/markdown-image/xp/en/developers/sxa/105/sitecore-experience-accelerator/images/SXA-calendar-language.PNG)