Returns the current datetime (date and time without timezone information) based on the specified timezone.
DATETIMEDiperbarui: 13 Jun 2026CURRENT_DATETIME([time_zone])Timezone string.
1 SELECT 2 CURRENT_DATETIME() as now, 3 CURRENT_DATETIME('Asia/Jakarta') as jakarta, 4 CURRENT_DATETIME('UTC') as utc;
Get the current datetime in different timezones.
| now | jakarta | utc |
|---|---|---|
| 2024-01-15T14:30:00.123 | 2024-01-15T21:30:00.123 | 2024-01-15T14:30:00.123 |
1 SELECT 2 FORMAT_DATETIME('%Y-%m-%d %H:%M', CURRENT_DATETIME('Asia/Jakarta')) as formatted;
Format the current datetime for display.
Sudah paham CURRENT_DATETIME? Latih langsung di browser
Latihan interaktif, langsung di browser.