Conducttr HelpDocs
Contact supportOld_HelpDocs
  • START HERE!
    • How to use this site
    • Getting started
  • FEATURE DOCUMENTATION
    • Important Foundations
      • Organisational structure
      • Deleting assets
    • Planning (AXS)
      • Assistants
        • LISA
      • Canvas
      • FIEMA
    • Designing
      • Editor
        • Project Activities
          • Collaboration 1.0
          • Exercise file activities
          • Exporting projects and exercises
        • Licences
        • Master Events List
          • Multiple Master Events List
          • Questions
        • Media
        • Personas
          • Persona libraries
          • Working with personas
            • Unique voice
            • Influence
            • Social Graph
            • ⚡Gotchas
            • Batch & Bulk operations
          • Factions
        • Configuration
          • Participants
            • Registration
              • Cookies, Privacy and T&Cs Statements
            • Teams
              • How To Assign Roles and Positions
            • Players, Personas and Role-players
              • Impersonation
              • Persona as a team member
          • Exercise
            • Exercise design
            • Exercise Setup
            • Channels
              • Historical Content
              • ⚡Why is a channel still showing?
              • Popular Channels
                • Email
                • Messenger (Msngr)
                • MicroBlog (Twitter)
                  • ⚡Tweets not appearing
                • Websites/News
                  • ⭐Simulating a cyber-attack in the MEL
                    • Hack website in the MEL
                    • 🔥Web page details
                • GoSocial (Facebook/Linkedin)
              • Pop Up Channels
                • 🔀Which Pop up is right for me?
                • Notification
                • Media pop-up
                • Phone call
                • Walkie Talkie
              • Information based Channels
                • Diagrams
                • Portal
                • Captions
                • Graph
              • Exercise Logging Channels
                • Decision log
                • Checklist
              • Monitoring and Alerting Channels
                • Help Desk Channel
                • InfoMap
                • Social Watch
              • Collaboration based Channels
                • Messenger Plus
                • TeamChat Plus
              • Other Social Channels
                • InstaMedia (Instagram)
                • Telegraph
                • Videoblog
                • Forum (Reddit)
                • Bulletin
                • BearSocial
                • Panda
              • Legacy Channels
                • TV
                • Browser
                • Blog
                • TeamChat
              • External Messaging Channels
                • External Email
                • Alert email
            • Capturing Observations
              • 🔀What's right for me?
              • Assessment Toolkit
              • Checklist creation
                • ⚡Checklist not appearing?
            • Diagrams
            • Smartwords - Dynamic Content
              • Exercise Smartwords
              • Persona Smartwords
              • Player Smartwords
              • Content smartwords
              • Conducttr Engine Smartwords
              • Functions
                • DATETIME formatting
            • Facilitator Dashboard
          • Style
        • Pattern of Life (PoL)
    • Running
      • 🤔Some definitions of who does what
      • The Virtual Desktop
      • Exercise Control
        • Facilitation
          • Teams
            • Team upload via Facilitator Dashboard
            • Positions and Special Permissions
          • Facilitator Dashboard
            • Master Events List
              • Multiple Master Events List
          • Pattern of Life
            • Dynamic Retweeting with Smartwords
          • Injects Grid
          • ⭐Live Cyber-Attack Simulation
            • Simulate a cyber-attack
            • 🔥Data corruption
        • Observation
          • Reviewing activity
            • 🔀What's right for me?
            • 🔥Confirming players are logged in
            • Review tab
              • Review
              • Assess
                • ⚡Assess tab not appearing?
              • Reports
              • ⚡Review tab not appearing?
            • Monitoring (Pulse)
              • 🔥Pulse disposition timeline
          • Capturing information
            • After-Action Review feature
            • Checklist operation
        • Adjudication
          • Spoof social engagement
        • Role-playing
          • 🔀What's right for me?
          • Impersonation
          • Log in as Persona
        • Observing
          • After-Action Review (AAR)
          • Pulse
      • Players (training audience)
        • Navigating Channels
          • Information-based channels
            • Website/News
          • Team-based channels
            • Social Media
              • MicroBlog (Twitter)
              • GoSocial (Facebook/Linkedin)
              • InstaMedia (Instagram)
              • Forum (Reddit)
            • Decision log
          • Solo-based channels
            • Email
          • Collaboration channels
            • Messenger Plus
            • TeamChat Plus
          • Tools-based channels
            • Social Watch
            • InfoMap
            • Checklist
      • Live updates from Scenario Editor
        • Refreshing personas
    • Reporting
      • Exporting
      • Feedback Summary for Exercise
  • HOW TO
    • How do I....
      • Live Cyber-Attack Simulation
      • Simulate a cyber-attack
      • Data corruption
  • PLAYER GUIDE
    • Role-Playing
  • CONCEPTS
    • Planning
      • Individualistic personas
        • Beliefs
    • Designing
      • Exercise design
        • Considerations and constraints
      • Scenario Design
    • Running
  • WORLDS
    • Concept
      • Facilitators
      • Administrators
    • Designing
      • Exercise
        • Setting up Worlds in the Scenario Editor
          • Adding exercise slots
        • Exercise setup
      • Hubs
        • Creating new Hubs
        • Deactivating Hubs
      • World Settings
        • Welcome Email
          • Customising the Welcome Email
          • Sending a Welcome Email
    • Running
      • Registering Facilitators
      • Uploading scenarios
      • Using Worlds for Facilitators
        • Uploading an exercise
        • Giving access to participants
    • Reporting
      • Metrics
  • FAQs and Common Issues
    • Registration & log in
      • I'm not receiving the password reset
      • The password reset is arriving late
      • Do I have to register my players?
    • Device & environment requirements
    • You're Already Logged In Elsewhere
  • RELEASE NOTES
    • 2025
      • February 2025
      • March 2025
    • 2024
      • June 2024
      • July 2024
      • September 2024
      • October 2024
      • December 2024
    • Installing Scenario Editor
      • Installing on Apple Mac
  • LOCAL
    • On-premises solution
      • Packing for Local
Powered by GitBook
On this page
  • Formats
  • Examples

Was this helpful?

  1. FEATURE DOCUMENTATION
  2. Designing
  3. Editor
  4. Configuration
  5. Exercise
  6. Smartwords - Dynamic Content
  7. Functions

DATETIME formatting

Formatting dates & times in published content

DATETIME(timestamp, format, output timezone) is a Conducttr function used to make dates and times look attractive.

  • timestamp = input; required, uses the format “yyyy-mm-dd hh:mm:ss”

  • format = output format, e.g. ‘HH:mm:ss’ (see details)

  • output timezone = timezone for output; optional, defaults to project’s time zone (currently defaults to project owner’s time zone)

Formats

Below are the date-time formatting specifications.

Format

Description

W

number of the week in the year (Monday is the first day of the week) with leading zero, 00-53

w

number of the week in the year (Sunday is the first day of the week) with leading zero, 00-53

yy or YY

2-digit year, e.g. 16

yyyy or YYYY

4-digit year, e.g. 2016

M

number of the month without leading zero, e.g. 1

MM

number of the month with leading zero, e.g. 01

MMM

abbreviated month name, e.g. Jan

MMMM

full month name, e.g. January

d or D

day of the month without leading zero, e.g. 1

dd or DD

day of the month with leading zero, e.g. 01

ddd

abbreviated name of the day of the week, e.g. Sun

dddd

full name of the day of the week, e.g. Sunday

h

hours (12-hr format) without leading zero

hh

hours (12-hr format) with leading zero

H

hours (24-hr format) without leading zero

HH

hours (24-hr format) with leading zero

mm

minutes

ss

seconds

SSSSSS

microseconds with leading zeros, 000000-999999

p or tt

AM/PM label

z or Z or TZD

time zone label, e.g. UTC

zz or ZZ

time zone offset without colon, e.g. +0100

zzz or ZZZ

time zone offset with colon, e.g. +01:00


Examples

The content body might look like: "You started at |DATETIME(audience.start_time, “HH:mm:ss”, “America/New_York”)| and finished at |DATETIME(audience.end_time, “HH:mm:ss”, “America/New_York”)|."

The example above shows the full-blown version with all the optional function parameters. The short one would look like: "You started at |datetime(audience.start_time)| and finished at |datetime(audience.end_time)|."

The second function parameter specifies the date/time format, and the 3rd one specifies the time zone to use. The time zone can be specified in 2 formats - 'America/New_York' (this is a universally-accepted representation for US Eastern Time).

Other examples are |datetime(audience.end_time, “HH:mm:ss Z (ZZ)”, audience.timezone)| Example result: “04:05:00 PST (-0800)”

|datetime(audience.end_time, “d/M/yyyy, ZZ, HH:mm:ss”, audience.timezone)| Example result: “1/1/2015, -0800, 04:05:00”

PreviousFunctionsNextFacilitator Dashboard

Last updated 8 months ago

Was this helpful?

|datetime(audience.end_time, “HH:mm:ss Z (ZZ)”, audience.timezone)| Let’s say the audience.end_time is “2015-06-01 12:05:00” instead of “2015-01-01 12:05:00” Example result: “05:05:00 PDT (-0700)” tz_timezones A list of tz_timezones can be found here

https://en.wikipedia.org/wiki/List_of_tz_database_time_zones