Configure date string?

I would like to cofigure WordService to insert the date in this format:

 2004-2-21 19:55:49

I would be perfectly happy modifying  a property with a strftime format. I also wouldn’t mind contributing code for this if it were an open source project.

Just adapt the short or long date in the system preferences (as WordService uses these settings).