now now

Devuelve la fecha actual en formato de fecha y hora. Para obtener más información sobre los tipos de datos, consulte esta página.

Categoría

Fecha

Sintaxis de función

now(<parameter>)

Parámetros

Parámetro
Descripción
string

Firmas y tipo devuelto

now()

now("<timeZone id>")

Devuelve un valor dateTime.

Ejemplos

now()

Devuelve 2023-06-03T06:30Z.

toString(now())

Devuelve "2023-06-03T06:30Z"

now("Europe/Paris")

Devuelve 2023-06-03T08:30+02:00.

recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76