CChoma CChoma - 1 year ago 100
jQuery Question

Does Wordpress Provide Native Datepicker in Admin?

I am developing a plugin and in the admin where I provide a field that is filled in by users with a date. I am wondering if there is a native datepicker in the WP Admin I that is available.

I usually include a small jQuery datepicker script that does it, but if one is already available I would prefer that for obvious reasons like lighter code, UI consistency, etc. This seems like something that would/should be included but I've not been able to find such documentation on what jQuery stuff, if any, are available in the Admin.

Answer Source

Yes. Wordpress includes this in the core. Here are a couple articles about it:

WP Codex: Function Reference/wp enqueue script

Paul Underwood's Iris Color Picker Tutorial (same principles apply to datepicker)

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