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 2019-06-03T06:30Z.

toString(now())

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

now("Europe/Paris")

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

recommendation-more-help
4f4a00c1-77c9-4eee-84df-bbe6206c3ab9