Skip to content

How i can change from hijri to gregorian and vice versa? #36

Description

@hassanuos

Based on user input I need to show different calendars. I tried the below logic but it has not worked for me. Is there any setter function that we can use to switch calendar using code snippet ?

     if(_this.val() == 1) { 

           // I need to show hijri calendar
           
            _dateSelctor.hijriDatePicker({
                hijri: true,
                locale: 'ar-sa',
                format: 'YYYY-DD-MM',
                useCurrent: false,
                showSwitcher: false
            });
        }else{

           // I need to show Gregorian  calendar

            _dateSelctor.hijriDatePicker({
                hijri: false,
                locale: 'ar-sa',
                format: 'YYYY-DD-MM',
                useCurrent: false,
                showSwitcher: false
            });
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions