Change Time Stamp Format of LabVIEW WebVI

Updated Jan 31, 2022

Environment

Software

  • LabVIEW NXG Web Module

Time stamp contorl/indicator in Web VI is fixed as "MM/dd/yyyy hh:mm:ss.fff tt" format. This document describes how to change time stamp format as you like.

  1. Create WebVI including Time stamp control/indicator (note that at this moment you cannot change its format) and build the application.
  2. Open generated html file (located in Builds folder).
  3. Change format-string text which is originally written like the following:
    format-string='MM/dd/yyyy hh:mm:ss.fff tt'
     

For example, if you use default format, format-string='MM/dd/yyyy hh:mm:ss.fff tt', you can see something like this.

If you change format string to format-string='yyyy/MM/dd hh:mm:ss.fff tt', results change.