Variables that require formatting can be formatted using the variable functions.
Note: At RUNTIME if PAS attempts to write out a file or create a directory it checks to make sure it does not contain any invalid characters (i.e. |?:* etc...). If it does, all invalid characters will be replaced with an underscore "_"
By default variables will be resolved using the default formatting that is defined when creating the variable. However, additional formatting can be applied later in the flow by using the Format variable function.
Below are some formatting examples for each data type:
A string representing the formatted number
Examples
Outputs
A portion of the string argument, depending on if the boolean argument is true or false
Examples
Outputs
A string representing the formatted date
Examples
Outputs
0 = digit placeholder (000 = 001)
# = digit no placeholder (### = 1)
. = decimal separator (#.# = 0.5)
, = grouping separator (#,### = 1,000)
yy = two-digit year
yyyy = four-digit year
m = month (1-12)
mm = two-digit month (01-12)
mmm = three letter month abbreviation (01=Jan)
mmmm = full month name (01=January)
d = day of month (1-31)
dd = two-digit day of month (01 - 31)
H = hours (1-23)
HH = two digit hour (00 - 23) (AM/PM NOT allowed)
M = minutes (0-59)
MM = two digit minute (00 - 59)
s = seconds (0-59)
ss = two digit second (00 - 59)
h = hour (0 - 12 | 12-hour AM/PM format)
hh = two digit hour (00 - 12 | 12-hour AM/PM format)
tt = AM/PM based on the time
zz = time zone (Pacific Daylight Time = PDT)
zzzz = time zone (Pacific Daylight Time)
Qoppa Software's PDF Automation Server for Windows, Linux, Unix, and macOS
Automate PDF Document Workflows through RESTful Web Services & Folder Watching
Copyright © 2002-Present Qoppa Software. All rights reserved.