"jquery UI datepicker custom style css"
Bootstrap 4.1.1 Snippet by arifurrahmansw

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script src="https://use.fontawesome.com/fb48fadd01.js"></script> <div class="container"> <div class="form-group row"> <div class="col-md-12"> <label>Date<span style="color:red;">*</span></label> <input type="text" class="form-control datepicker" id="entry_date" name="entry_date" value="" readonly required /> </div> </div> <div class="form-group row"> <div class="col-md-12"> <a class="btn btn-info btn-block text-white" >Show</a> </div> </div> <p class="text-center"><a target="_blank" href="http://agami24.com/">Thanks</a></p> </div>
body { font-family: "Roboto", sans-serif; font-size: 1rem; font-weight: normal; line-height: 1.5; } .container { max-width: 75rem; width: 100%; margin: 0 auto; } .wrapper { max-width: 40rem; padding: 2rem; margin: 4rem auto; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23); border-radius: 4px; } .table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th { padding-left: 5px; vertical-align: middle; } .table { border-collapse: collapse; border-spacing: 0; width: 100%; max-width: 100%; margin-bottom: 0px; } td, th { border: 1px solid #000; padding: 5px; } .ui-datepicker-header a.ui-datepicker-prev::after { font-family: "FontAwesome"; content: "\f104"; } .ui-datepicker-header a.ui-datepicker-next::after { font-family: "FontAwesome"; content: "\f105"; font-size: 1.5rem; color: #444444; } .ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { border-bottom-right-radius: 0px; } .ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { border-bottom-left-radius: 0px; } .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active { border: 0px; background: #fff; font-weight: normal; /* color: #454545; */ } .ui-widget-header { border: none; background: #fff; color: #333333; font-weight: bold; border-bottom: 1px solid #f9f9f9; } .ui-datepicker td { } .ui-datepicker-calendar a.ui-state-highlight { border: 1px solid; border-color: #d33a47; color: #d33a47; } .ui-datepicker-calendar a { color: #444444; text-decoration: none; display: block; margin: 0 auto; border: 1px solid #d33a47; cursor: pointer; } .ui-datepicker-calendar a.ui-state-active { background: #d33a47; color: #ffffff; } .ui-datepicker td a{ text-align: center; border: 0; width: 35px; height: 35px; line-height: 35px; border-radius: 50%; text-align: center; } .ui-datepicker-calendar { width: 100%; text-align: center; padding: 1rem; } .ui-datepicker { display: none; width: 30rem!important; background: #ffffff; border-radius: 0.25rem; box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2); margin-top: 1rem; } .ui-datepicker-calendar a:hover{ box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2); } .ui-datepicker .ui-datepicker-header { position: relative; padding: .6em; } .ui-datepicker .ui-datepicker-title select { font-size: 1em; margin: 1px 0; border: 1px solid rgba(0, 0, 0, 0.2); padding: 5px; } .ui-datepicker .ui-datepicker-prev{ left: 2px; padding: 5px; font-size: 18px; text-align: center; border: none; } .ui-datepicker-header a.ui-datepicker-next{ padding: 5px; font-size: 18px; text-align: center; border: none; } .ui-datepicker .ui-datepicker-prev:hover,.ui-datepicker .ui-datepicker-next:hover{ background: #d33a47; color: #fff; } .ui-datepicker-calendar thead { color: #999; } .ui-datepicker .ui-datepicker-title select { margin: 2px; } .ui-datepicker .ui-datepicker-title select { font-size: 1em; margin: 2px; }
$(function() { $(".datepicker").datepicker({ dateFormat: 'dd-mm-yy', changeMonth: true, changeYear: true, constrainInput: false }); });

Related: See More


Questions / Comments: