Adding functions to JavaScript View Engine in CouchDB 0.11

Posted by fuzzy lollipop on Stack Overflow See other posts from Stack Overflow or by fuzzy lollipop
Published on 2010-04-13T19:01:48Z Indexed on 2010/04/13 19:03 UTC
Read the original article Hit count: 297

Filed under:
|

I want to format dates in a specific format but I can't figure out how to add my date function to the JavasScript view engine in CouchDB. Preferably I would like to add my formatDate() function to the prototype Date object so it is available everywhere Does anyone know how to add this so that the CouchDB JavaScript View engine will see it?

© Stack Overflow or respective owner

Related posts about couchdb

Related posts about JavaScript