- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
The JS is:
new Date() - new Date(ctx.vars.OfferDate)
Be aware that you're comparing 2 clocks here- the one on the db server and the one on the app server.
A more consistent approach would be to do the math on the db: DaysAgo(@Offer_Date) or whichever resolution is desired.
Thanks,
-Jon
Views
Replies
0 Likes
Total Likes