Mr world wide
Mr world wide

Reputation: 4814

How can i customize Bootstrap 3 Datepicker to only date without timestamp

I'm using Bootstrap 3 Datepicker v4 Docs plugin:

https://eonasdan.github.io/bootstrap-datetimepicker/

I want the only date in view and the backend how can I achieve it.? enter image description here

I'm not able to find proper documentation. i want to hide these two marked timestamp details.

<div class="container">
    <div class="col-sm-6" style="height:130px;">
        <div class="form-group">
            <div class='input-group date' id='datetimepicker9'>
                <input type='text' class="form-control" />
                <span class="input-group-addon">
                    <span class="glyphicon glyphicon-calendar">
                    </span>
                </span>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(function () {
            $('#datetimepicker9').datetimepicker({
            });
        });
    </script>
</div>

Upvotes: 0

Views: 624

Answers (1)

Rasna Shakya
Rasna Shakya

Reputation: 557

<script type="text/javascript">
  $(function () {
    $('#datetimepicker9').datetimepicker({ format: 'DD/MM/YYYY' });
  });
</script>

This might help you to get only date.

Upvotes: 3

Related Questions