π¦ Todays date
π¦ Todays date
The Today's Date block allows you to retrieve the current date at the precise moment when the player passes through this block. It is particularly useful for timestamping an event, limiting access to a feature over time, or displaying the date to the player.
π₯ Entries
- This block does not require any specific input: It directly takes the date and time of the system at the time of its execution.
π€ Outings
- date (Text): Returns the date in a simple "Year-Month-Day" format (for example:
2024-11-21). - dateWithTime (Text): Returns the complete date including the exact time and time zone in "ISO 8601" format (for example:
2024-11-21T15:30:00.000Z). This format is ideal for exchanges with APIs or databases.
π‘ Example of use
Scenario: Saving a player's last connection date
- The player connects to his personal space in the game.
- The flow passes through the Today's Date block to retrieve the current date and time.
- The dateWithTime output is connected to an Assignment block to store this value in a
lastConnectionvariable. - The Assignment block saves the date in ISO format in the player database.
- The flow continues to a welcome message displaying: "Last connection: November 21, 2024".
βοΈ Technical Details
- Time zone management: The ISO 8601 format (
dateWithTime) automatically includes the UTC time zone (indicated by the finalZ). - Refresh: The date and time are captured at the exact moment the block is executed, without further updating.
Updated on: 04/03/2026
Thank you!
