Returns the current date in a specified timezone.
#
Request
GET https://api.synz.xyz/tools/date
#
Parameters
| Name |
Type |
Description |
| timezone |
string |
IANA timezone (e.g. "Europe/London"). Defaults to server timezone. |
#
Response
{
"date": "2026-05-16",
"day": 16,
"month": 5,
"year": 2026,
"timezone": "Europe/London"
}
#
Fields
| Field |
Type |
Description |
| date |
string |
ISO 8601 date string (YYYY-MM-DD) |
| day |
number |
Day of the month |
| month |
number |
Month of the year |
| year |
number |
Full year |
| timezone |
string |
IANA timezone used |
#
Examples
curl https://api.synz.xyz/tools/date
curl https://api.synz.xyz/tools/date?timezone=America/New_York
curl https://api.synz.xyz/tools/date?timezone=Asia/Tokyo