PureText: mongodb - Query mongo for records older/newer than last N days

Mini CRM


Instantly Provisioned Local Numbers

Call Forwarding

Empower your apps to send and receive texts

Contact ManagementAcquire | Manage | Engage

Don't lose sight of your existing relationships. Manage your contacts and log engagement with them at one place.

Web SMSText your clients

Promote a flash sale or invite everyone to your event at once by selecting multiple contacts. PureText is built with your business in mind.

Simple Call CenterRoute your clients

Do you need to have a presence in multiple cities? With PureText you can get local numbers anywhere and forward your calls to one number.

Log All ActivityEmailed, Texted or Called?

Measurement is the key to optimizing any process, and marketing is no exception. Log your engagement with your clients to see what works.

NotesAre they not ready?

Take notes regarding your interaction with your client. There are times you'd need to get back to them and you'd wanna remember.

Check listEveryone needs one

Isn't everything a task? Either you assign one or you are assigned one. Associate tasks per contact to manage relationships and expectations better.

  • Query mongo for records older/newer than last N days

    Let’s assume you are querying a collection named ‘users’ and you want to see users created before of after the last ’n’ days, it can seem tricky, but it doesn’t have to be. A simple query can solve your problem For users created before ’n’ days: db.users.find({“dateInserted”:{$lt:new Date(Date.now() – 24*60*60 * n * 1000)}})  …
    Read more