I am looking to create a datetime calender same as in django admin page using jQuery. I am using datepicker() api for this and it works cool
Below is what I can do with this :
but I am still looking to have a today link like it is provided in django admin page, as shown in figure below in red:
Is it possible to do using same datepicker ? Or maybe we would need to do something else ?
Any suggestions ?
Code which I am using in current datepicker is below :
<script>
$(function() {
$("[name*='exp_date']").datepicker({ changeMonth: true , changeYear: true,
dateFormat: "yy-mm-dd" ,gotoCurrent: true,appendText: "(yyyy-mm-dd)" ,
autoSize: true , prevText: "Earlier" ,showButtonPanel: true , showCurrentAtPos: 3, showOptions: { direction: "up" }, weekHeader: "Wk" });
});
</script>
<style>
.ui-datepicker-trigger { position:relative;top:5px; height:20px ; }