JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://code.jquery.com/ui/1.8.18/themes/base/jquery-ui.css">
<input name="datefrom" type="text" class="datepicker" value="20-1-2011">
<input name="dateto" type="text" class="datepicker" value="01-01-2012">
<input name="dateto2" type="text" class="datepicker" >

JavaScript

$(".datepicker").datepicker({
                   showOn: "button",
                   closeText: 'Luk',
                   prevText: '&#x3c;Forrige',
                   nextText: 'N&aelig;ste&#x3e;',
                   currentText: 'Idag',
                   monthNames: ['Januar', 'Februar', 'Marts', 'April', 'Maj', 'Juni',
                     'Juli', 'August', 'September', 'Oktober', 'November', 'December'],
                   monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun',
                     'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
                   dayNames: ['S&oslash;ndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'L&oslash;rdag'],
                   dayNamesShort: ['&oslash;n', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'L&oslash;r'],
                   dayNamesMin: ['S&oslash;', 'Ma', 'Ti', 'On', 'To', 'Fr', 'L&oslash;'],
                   weekHeader: 'Uge',
                   dateFormat: 'dd-mm-yy',
                   firstDay: 1,
                   isRTL: false,
                   showMonthAfterYear: false,
                   yearSuffix: ''
               });

$(".datepicker").each(function() {    
    $(this).datepicker('setDate', $(this).val());
});