Returns the current date based on the specified timezone or the default timezone.
DATEDiperbarui: 13 Jun 2026CURRENT_DATE([time_zone])Timezone string (e.g., 'Asia/Jakarta', 'UTC').
1 SELECT 2 CURRENT_DATE() as today, 3 CURRENT_DATE('Asia/Jakarta') as today_jakarta, 4 CURRENT_DATE('America/New_York') as today_ny;
Get the current date in different timezones.
| today | today_jakarta | today_ny |
|---|---|---|
| 2024-01-15 | 2024-01-15 | 2024-01-14 |
1 SELECT * 2 FROM `project.dataset.orders` 3 WHERE order_date >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY);
Filter orders from the last 7 days.
1 SELECT 2 name, 3 birth_date, 4 DATE_DIFF(CURRENT_DATE(), birth_date, YEAR) as age 5 FROM `project.dataset.users`;
Calculate a user's age from their birth date.
Sudah paham CURRENT_DATE? Latih langsung di browser
Latihan interaktif, langsung di browser.