T81-2021 Pipeline Pilot: Variations in DateTime formatting depending on version

Program

BIOVIA Pipeline Pilot 2019 and greater

Operating System

All supported operating systems

Background

Prior to Pipeline Pilot 2019, DateTime properties will by default be formatted according to the following format string:


%m/%d/%y %H:%M:%S Example given: 08/10/21 11:21:44


In Pipeline Pilot 2019 and later, the default format for DateTime properties will be:


%a %b %d %H:%M:%S %Y Example given: Tue Aug 10 11:27:36 2021


As of Pipeline Pilot versions 2019 and greater, you may use the following PilotScript function to have DateTime properties formatted as in the versions previous to 2019:


DateSetLocale('');


Which will result in dates formatted as:


%m/%d/%Y %I:%M:%S %p Example given: 08/10/2021 11:35:26 AM


More information on the DateSetLocale() function is available in the PipelinePilot PilotScript documentation.


DateTime properties can be formatted to suit your use case using the DateSetFormat() and DateText() PilotScript functions.

How to contact BIOVIA Support

If you have any questions, please contact BIOVIA Support.

This Tech Note can also be found at the following link:
https://www.3ds.com/support/news/single/t81-2021-pipeline-pilot-variations-in-datetime-formatting-depending-on-version/