Question

Date Now

Hi,

I'm doing some javascript programming using ESQ, and I need the current date. Something similar to DateTime now = DateTime.Now; in C#.
I was wondering if I can use var today = new Date(); var dd = today.getDate()

Regards,
Sushanth.

File attachments

Like

2 comments

Dear Sushanth,

You have correctly understood, that when creating a new variable var today = new Date();  you recieve a current date as DateTime.Now in C#

Here is an example of filter group you can use in ESQ:

var filtersCollection = Terrasoft.createFilterGroup();
filtersCollection.add('StatusFilter', Terrasoft.createColumnFilterWithParameter(
      Terrasoft.ComparisonType.EQUAL,
      'Status', ConfigurationConstants.Activity.Status.NotStarted));
filtersCollection.add('DateFilter', Terrasoft.createColumnFilterWithParameter(
      Terrasoft.ComparisonType.LESS,
      'DueDate', new Date()));

 

Regards,

Anastasia

Hi Anastasia,



Thats exactly what I was looking for. Thank you for the help! :)



Regards,

Sushanth.

Show all comments