I'm sure I'm just being dim, but I can't work out how to use the formatDate utility function of the Mobiscroll date picker plugin.
The doc just says this:
formatDate function(format, date, settings) Format a date into a string value with a specified format
When the value of my input field changes I want to format the value and store it in another field, so I've attempted the following:
<input type="text" id="startTimeInput" onChange="alert(jQuery('#startTimeInput').formatDate('yyyy-MM-dd HH:mm:ss', this.value, ''));"/>
However, the alert never fires and for some reason Firebug is playing up for me right now and as such isn't reporting anything either. Anybody got any ideas?
Note: I'm using jQuery() as I have to use jQuery.noConflict()