To use MomentJS in views/custom.ejs, what is the correct way (if any)?
- Server side - routes/index etc we can easily use - require('moment');etc and it works fine.
- Server Side (EJS views) - views/custome.ejs, something like - <% var m = require('moment'); %>doesn't work
I am using ExpressJS with EJS as the template engine.
 
     
     
     
     
     
     
     
     
     
     
     
     
    