DotnetSparrow DotnetSparrow - 1 year ago 77
jQuery Question

jQuery date formatting

How can I format the date using jQuery. I am using below code but getting error:

$("#txtDate").val($ Date(), 'dd M yy'));

Please suggest a solution.

Answer Source

jQuery dateFormat is a separate plugin. You need to load that explicitly using a <script> tag.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download