Skip to main content
added 19 characters in body
Source Link
fmsthird
  • 4.6k
  • 4
  • 18
  • 42

You can try this in your phtml file:

<script>
    require([
        'jquery',
        'jquery/ui'
    ], function($){
        $(document).ready(function(){
           $("#datepicker").datepicker({
           dateFormat: 'MM dd'
           });
        });
    });
</script>  

Note: where "#datepicker" is the id of your datetime picker input element

You can try this in your phtml file:

<script>
    require([
        'jquery',
        'jquery/ui'
    ], function($){
        $(document).ready(function(){
           $("#datepicker").datepicker({
           dateFormat: 'MM dd'
        });
     });
</script>  

Note: where "#datepicker" is the id of your datetime picker input element

You can try this in your phtml file:

<script>
    require([
        'jquery',
        'jquery/ui'
    ], function($){
        $(document).ready(function(){
           $("#datepicker").datepicker({
           dateFormat: 'MM dd'
           });
        });
    });
</script>  

Note: where "#datepicker" is the id of your datetime picker input element

Source Link
fmsthird
  • 4.6k
  • 4
  • 18
  • 42

You can try this in your phtml file:

<script>
    require([
        'jquery',
        'jquery/ui'
    ], function($){
        $(document).ready(function(){
           $("#datepicker").datepicker({
           dateFormat: 'MM dd'
        });
     });
</script>  

Note: where "#datepicker" is the id of your datetime picker input element