Hi aanalshah17,
For setting the date format you need to set the format option.
Using the same sample i have added the format.
ASP.Net Core: Implement Bootstrap DateTimePicker
Refer below code.
View
<script type="text/javascript">
$(function () {
$("#txtDateTime").datetimepicker({
format:"YYYY/MM/DD"
});
$('.glyphicon-calendar').click(function () {
$("#txtDateTime").focus();
});
});
</script>
Screenshot
