Show Schedule saved in BD in DateTimePikcer when opening Modal?

0

Hello, I have a question for more than I search the internet I can not find a solution to my problem, in my interface I have a table that contains two columns of Start Time and End Time! and when I give it to edit it opens the modal and sends me the datapikcer blank, what I want is for you to send me the time I have in each of the records

In my partial view

<div class="col-md-3">
            <label for="lblDate">@TextResources.HrsInit</label>
            <div class="form-group">
                <div class="input-group date" id="HoraInicio">

                    <input type="text" id="HoraInicio" class="form-control datepicker" name="HoraInicio" />
                    <span class="input-group-addon">
                        <span class="glyphicon glyphicon-time"></span>
                    </span>
                </div>
            </div>
        </div>      
        <div class="col-md-3">
            <label for="lblDate">@TextResources.HrsEnd</label>
            <div class="form-group">
                <div class="input-group date" id="HoraFin">

                    <input type="text" id="HoraFin" class="form-control datepicker" name="HoraFin" />
                    <span class="input-group-addon">
                        <span class="glyphicon glyphicon-time"></span>
                    </span>
                </div>
            </div>
        </div>

and in the script a if

$('#HoraInicio').datetimepicker({
        format: 'HH:mm'
    });
    $('#HoraFin').datetimepicker({
        format: 'HH:mm'
    });

Thank you in advance for the help

    
asked by Ch3vi 10.08.2018 в 19:56
source

0 answers