Official Content

Returns a DateTime data type value corresponding to the current date and time.

Syntax

Now()

Type Returned:
DateTime

Scope

Objects: Procedure, Transaction, Web Panel, Panel, Data Provider
Generators: .NET.NET FrameworkJava, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3), RPG, Cobol, Apple, Android, Angular

Description

Returns a DateTime value corresponding to the current date and time. The resulting value includes milliseconds only if the assigned variable or attribute supports Milliseconds.

  • When used in a web application, it returns the date and time of the server where the application is running.
  • When used in a command line application, it returns the date and time of the machine where the application is running.

See Also

Today function
Time function


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant