Formatting the Date in JavaScript

前端 未结 6 1624
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-16 06:54

Using newDate() function in Java script, I am able to get today\'s date. I am getting the date in the format 3/3/2009 (d/m/yyyy). But i actually need the date in the format

6条回答
  •  清酒与你
    2021-01-16 07:25

    add jquery ui plugin in your page.

    function DateFormate(dateFormate, dateTime) {
        return $.datepicker.formatDate(dateFormate, dateTime);
    };
    

提交回复
热议问题