---
url: >-
  /statelake/scripting-reference/functions-and-procedures/datetime-functions/now.md
---

# Now

Similar to the **Date** function, **Now** also returns the current date as a **TDateTime** data type, but it includes the time of the call, accurate to the millisecond.

Declaration: function Now : TDateTime

An example.

```pascal
procedure OnMapEvent(var Value:Variant);
begin
 //the current date and time accurate to a millisecond
  Value := Now;
end;
```

Please also refer to [DateTime (TDateTime)](/statelake/scripting-reference/data-types/datetime-tdatetime) for additional information.
