Convert PHP date() style dateFormat to the equivalent jQuery UI datepicker string


/ Published in: PHP
Save to your folder(s)

This is a simple bit of code that allows you to do a write once date format in a PHP style date() format and convert it to be used by datepicker jQuery UI widget. It returns the converted string.\r\n\r\nNothing fancy here, but a time saver for the future.\r\n\r\nCould use improvement such as error handling for common PHP dateFormat string values that do not have an equivalent UI portion. Potentially make this a two way conversion. Add more available options.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.