$(function () {
    //Textare auto growth
    autosize($('textarea.auto-growth'));

    //Datetimepicker plugin
    $('.datetimepicker').bootstrapMaterialDatePicker({
        format: 'dddd DD MMMM YYYY - HH:mm',
        clearButton: true,
        weekStart: 1
    });

    //$('#dtinicio').bootstrapMaterialDatePicker({
    //    format: 'YYYY/MM/DD',
    //    clearButton: true,
    //    weekStart: 1,
    //    time: false
    //});

    //$('#dtfin').bootstrapMaterialDatePicker({
    //    format: 'YYYY/MM/DD',
    //    clearButton: true,
    //    weekStart: 1,
    //    time: false
    //});

    $('#dtclientefecha').bootstrapMaterialDatePicker({
        format: 'YYYY/MM/DD',
        clearButton: true,
        weekStart: 1,
        time: false
    });

    $('#txtsupplierfecha').bootstrapMaterialDatePicker({
        format: 'YYYY/MM/DD',
        clearButton: true,
        weekStart: 1,
        time: false
    });


    //$('.datepicker').bootstrapMaterialDatePicker({
    //    format: 'dddd DD MMMM YYYY',
    //    clearButton: true,
    //    weekStart: 1,
    //    time: false
    //});

    $('.timepicker').bootstrapMaterialDatePicker({
        format: 'HH:mm',
        clearButton: true,
        date: false
    });
});