dynamic get time for ejs