This topic contains 1 reply, has 2 voices, and was last updated by Sean Sean 2 years, 5 months ago.

Time input with datepicker


  • Theoooo
    Participant

    Posts: 9
    Member Reply #4529

    Hello there,

    I’d like to get a time input only, actually I’m using this :

    <div class=”input-group date date-picker margin-bottom-5″ data-date-format=”dd/MM/yyyy hh:mm:ss”>
    <input class=”form-control form-filter input-sm” readonly=”readonly” name=”booking-arrival-date-from” placeholder=”Du” value=”00:15″ type=”text”>
    <span class=”input-group-btn”>
    <button class=”btn btn-sm default” type=”button”>
    <i class=”fa fa-calendar”></i>
    </button>
    </span>
    </div>

    and I’m getting date like dd/mm/yyyy. Well.

    I would like to get just hours and minutes, like hh:mm, how can I do this ?

    Thank you,

    Théo

    Sean
    Sean
    Keymaster

    Posts: 4481
    Support Staff Reply #4550

    Hi :),

    To get the time input only please consider using the bootstrap time picker plugin instead:
    http://www.keenthemes.com/preview/metronic/theme/admin_1/components_date_time_pickers.html.

    More info you can get from the plugin’s documentation:
    http://jdewit.github.com/bootstrap-timepicker

    Thanks.

You must be logged in to reply to this topic.