Skip to content
Date & Time year

$year[]

The $year function returns the current year.

Syntax

bdfd
$year

Important: This function uses the special identifier ((year)) which is resolved at runtime.

Syntax

$year

Note: This function takes no parameters.

Return Value

The current year (for example 2026), in the form of a string.

Examples

Simple year

We are in the year $year.

Age calculation

Were you born in 2000? You are $sub[$year;2000] years old!
$footer[© $year - MyBot]

Notes

  • The year is based on the system clock of the server running the bot.
  • Useful for dynamic copyright footers.