Articles on: Blocks Creator
This article is also available in:

🟦 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


  1. The player connects to his personal space in the game.
  2. The flow passes through the Today's Date block to retrieve the current date and time.
  3. The dateWithTime output is connected to an Assignment block to store this value in a lastConnection variable.
  4. The Assignment block saves the date in ISO format in the player database.
  5. 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 final Z).
  • Refresh: The date and time are captured at the exact moment the block is executed, without further updating.

Updated on: 04/03/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!