How to format Insert Date & Insert Time?

pinEdit

How to format Insert Date & Insert Time?


leeka 01-18-2010, 8:28
There's a function in the toolbar to Insert Date and Insert Time. Can I set the formatting of the date & time, instead of using the default?

For example, I'd like to insert date like 21 January 2010, time like 06:20 32 PM.

Please advise, thanks.

Re: How to format Insert Date & Insert Time?


Pintexx Support 01-19-2010, 9:40
Hello,

the date/time is currently fix.

But if you are using XML toolbar you can change the callback function to

parent.mydatefunction

Then add this function to your web page.
Then use

editor.editInsertHtml(date)

to insert any date/time format you like.

Regards,
Hans-Peter