jQuery date formatting
jquery
Solution
jQuery dateFormat is a separate plugin. You need to load that explicitly using a `<script>` tag.
Problem
How can I format the date using jQuery. I am using below code but getting error: ``` $("#txtDate").val($.format.date(new Date(), 'dd M yy')); ``` Please suggest a solution.