Anytime Help Center

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Support
  • Guest
  • Log In
English (US)
US English (US)
DE German
CN Chinese
MX Spanish (Mexico)
Chinese (Simplified)
  • AKG
    Microphones Wireless Integrated Systems Automatic Mixers Headphones Discontinued Products (AKG) General AKG Inquiries Certifications (AKG)
  • AMX
    Networked A/V Distribution (AVoIP) Traditional A/V Distribution Video Signal Processing Architectural Connectivity User Interfaces Control Processing Power (AMX) Programming (AMX) Software (AMX) Discontinued Products (AMX) General AMX Inquiries Certifications (AMX)
  • BSS
    Soundweb™ Omni Soundweb™ London Soundweb™ Contrio™ Software (BSS) Discontinued Products (BSS) General BSS Inquiries Certifications (BSS)
  • Crown
    CDi DriveCore Series CDi Series Commercial Series ComTech Series DCi DriveCore Series I-Tech HD Series XLC series XLi Series XLS DriveCore 2 Series XTi 2 Series Discontinued Products (Crown) Software (Crown) General Crown Inquiries Certifications (Crown)
  • dbx
    CX Series 500 Series DriveRack Personal Monitor Control ZonePRO Zone Controllers FeedBack Suppression Microphone Preamps Dynamics Processors Crossovers Equalizers Software (dbx) Discontinued Products (dbx) General dbx Inquiries Certifications (dbx)
  • Flux::
    Immersive Processing Analysis Subscriptions
  • JBL
    Cinema Sound Installed Live Portable Tour Sound Recording & Broadcast Software (JBL) Discontinued Products (JBL) Video Manual Series (JBL) General JBL Inquiries Certifications (JBL)
  • Lexicon
    Plugins Effects Processors Cinema Discontinued Products (Lexicon) Video Manual Series (Lexicon) General Lexicon Inquiries Certifications (Lexicon)
  • Martin
    Atomic ELP ERA Exterior MAC P3 VC VDO Tools Discontinued Products (Martin) General Martin Inquiries Certifications (Martin)
  • Soundcraft
    Digital Analog Connected Analog Only Discontinued Products (Soundcraft) Video Manual Series (Soundcraft) General Soundcraft Inquiries Certifications (Soundcraft)
  • General HARMAN Inquiries
    Dante
+ More
  • Home
  • AMX
  • Programming (AMX)
  • Programming

AMX Date and Time formatting in code and on the panels

Technical Support Guide

Written by Jose Liberio Cruz

Updated at February 9th, 2026

Table of Contents

The date formats available on the panel are: The time formats available on the panel are: Various questions about the date and time formatting have been asked. To quickly incorporate the .axi in the program,

Displaying the date and time on touch panels and other user interfaces is a great addition for the end user, however the formatting available in the panel file doesn't always meet the needs of the user interface design (look and feel) or the preferences of the end user.

The date formats available on the panel are:

  • weekday, example: Sunday
  • mm/dd, example: 09/02
  • dd/mm, example: 02/09
  • mm/dd/yyyy, example: 09/02/2012
  • dd/mm/yyyy, example: 02/09/2012
  • mnth d, yyyy, example: September 2, 2012
  • d mnth, yyyy, example: 2 September, 2012
  • yyyy-mm-dd, example: 2012-10-05

 

The time formats available on the panel are:

  • Standard, example: 3:36
  • Standard AM/PM, example: 3:36 PM
  • 24 hour, example: 15:36

 

Various questions about the date and time formatting have been asked.

For example:

  • Is there a way to put the date and time on the same button?
  • Is there a way to change the name of the month?
  • Is there a way to change the names of the days of the week?
  • Is there a way to only display the month?
  • Is there a way to display a 2-digit year?
  • Is there a way to change the delimiters?

Attached to this tech note is a workspace that contains an .axi file that can be incorporated into existing or new code that will display the date, time, or both on the panel in a custom format required to meet the needs of the panel design or the preferences of the end user.

An example workspace, master .axs file, and test panel file are included for demonstration purposes.

To quickly incorporate the .axi in the program,

  1. Copy the PanelDateTime.axi file into the working file directory.
  2. Add the include file to the workspace, using the "Existing Include" option.
  3. "Include" or "#Include" the file under the DEFINE_DEVICE section of the .axs file.
  4. Add the names of the panel devices, as called in DEFINE_DEVICE to the array dvDATETIMEPANELS found within the PanelDateTime.axi file
  5. Modify the panel files, by changing from an existing date or time port and address to an address that will not conflict with the existing design.
  6. Change the address numbers in the array nDATETIMEADDRESS found within the PanelDateTime.axi (if you don't want to use one enter a 0 in the array).
  7. Assign the appropriate formatting to the variables cDATEFORMAT, cTIMEFORMAT, or cDATETIMEFORMAT in the DEFINE_START section in the panel DateTime.axi.
  8. Compile .axs file.
  9. Load to the processor.

The PanelDateTime.axi file can be modified to meet the needs of the project. i.e. changing the names of the weekdays, or months, or by adding different formatting of the values​

 

Related Videos

amx formatting datetime setup

Was this article helpful?

Yes
No
Give feedback about this article

Table of Contents

The date formats available on the panel are: The time formats available on the panel are: Various questions about the date and time formatting have been asked. To quickly incorporate the .axi in the program,

Related Articles

  • AMX SPLIT_STRING
  • AMX - Default Settings, User names and Passwords for for many AMX Products
  • Setting the Time Zone Offset in London Architect

Related Articles

  • AMX SPLIT_STRING
  • AMX - Default Settings, User names and Passwords for for many AMX Products
  • Setting the Time Zone Offset in London Architect
Copyright © HARMAN Professional. All rights reserved. Privacy Policy | Terms of Use
Expand