How to use Datepicker together with Position?

How to use Datepicker together with Position?

I have some problems combining Datepicker and Position . I tried the following code and it didn't work at all.

  1. $('input[type="date"]')
        .datepicker()
        .datepicker('widget').position({
            my: 'left bottom',
            at: 'left top'
        });