# getCalcDate

### Parameters

inputDate - This can be a date or datetime in any format or a controlId to a date or dateTime control

### Example Usages

```javascript
   let calcDate1 = brixxApi.getCalcDate(brixxApi.getFieldValue("myDateTime1"));
   let calcDate2 = brixxApi.getCalcDate(brixxApi.getFieldValue("myDate2"));
   if(calcDate1 === calcDate2){
      //Do something
   }
```

### Example Results

```javascript
   brixxApi.getCalcDate(new Date('1995-12-17 03:24:00')) //9481 (days since 1.1.1970)
   brixxApi.getCalcDate('1995-12-17 03:24:00')           //9481
   brixxApi.getCalcDate('1995-12-17 12:44:30')           //9481
   brixxApi.getCalcDate(myControlId)                     //?
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/functions/getcalcdate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
