Build a date token
You can use characters reserved for XPath and system variables in the publishing job Name. This lets you pull in data, such as the date and time. You can combine the various system variables for dates and times to create the format you want.
You may not have permissions to publish under the following conditions:
- A content owner or administrator can set permissions to deny access to components or folders. If your permissions to content have been blocked, and you are not an administrator, you can use the Publish option in a project's Content pane, but it will fail with a warning.
- An Inspire administrator can define at the user and role level whether the Publish action is available.
- By default, only administrators can publish content in Inspire.
- You can see the Publish option only if you're an administrator or have the can_publish module property.

Tips and tricks
- Tokens can also be used in a publishing profile. For help using tokens in a publishing profile, follow the steps in Publish from a profile with tokens.
- You can use up to 1000 characters to specify tokens. However, if the resolved tokens exceed 1000 characters, they will be truncated.
- For other system variables you can use as tokens besides dates and times, read: Publish a component with tokens.
You can use date and time tokens in the job's Publish Name field.
Inspire provides the following variables for formatting dates and times:
- To add the current date and time, use
{$datetime}
Example Publish Name = MyMap04-30-2024_-11-10-17 - To add the date with a format of YYYY-MM-DD, use
{$date}.
Example Publish Name = MyMap2024-04-30 - To add the year, use
{$year}
Example Publish Name = MyMap2024 - To add the month with a 2-digit number format, use
{$month}
Example Publish Name = MyMap04 - To add the month with a one-digit number format, use
{$Month}
Example Publish Name = MyMap4 - To add the month that uses its full name, use
{$monthname}
Example Publish Name = MyMapApril - To add the month that uses the first three letters of its name, use
{$monthshort}
Example Publish Name = MyMapApr - To add the day of the week with a 2-digit number format, use
{$day}
Example Publish Name = MyMap05 - To add the day of the week with a one-digit number format, use
{$Day}
Example Publish Name = MyMap5 - To add the day of the week that uses its full name, use
{$dayname}
Example Publish Name = MyMapWednesday - To add the day of the week that uses the first three letters of its name, use
{$dayshort}
Example Publish Name = MyMapWed - To add the hour as two digits using a 24-hour clock, use
{$hour}
Example Publish Name = MyMap08 - To add the hour as one digit using a 24-hour clock, use
{$Hour}
Example Publish Name = MyMap8 - To add the minute with a 2-digit number format, use
{$minute}
Example Publish Name = MyMap06 - To add the minute with a one-digit number format, use
{$Minute}
Example Publish Name = MyMap6 - To add the second with a 2-digit number format, use
{$second}
Example Publish Name = MyMap02 - To add the second with a one-digit number format, use
{$Second}
Example Publish Name = MyMap2 - To format the times as 12-hour clock with a 2-digit number format, use
{$hour12}
Example Publish Name = MyMap01 - To format the times as 12-hour clock with a one-digit number format, use
{$Hour12}
Example Publish Name = MyMap1 - To append the time with the am and pm modifiers, use
{$ampm}
Example Publish Name MyMap{$Hour12}{$ampm}= MyMap14pm
- To add the current date and time, use
- You can combine the system variables for dates and times to create the format you want.
- Use as many variables as you need.
- You do not need to separate each variable.
Example Publish Name = MyMap{$month}{$year}= MyMap072026- If you add a space between variables, it is ignored.
Example Publish Name = MyMap{$month} {$year}= MyMap072026 - You can add a dash or underscore to separate values.
Example Publish Name = MyMap{$month}_{$year}= MyMap07_2026
Example Publish Name = MyMap{$month}-{$year}= MyMap07-2026
- If you add a space between variables, it is ignored.