pjs.getCurrentJobDateNumeric()
Release Version: 7.24
Returns the current job or session date as a numeric value, either in 6-digit or 8-digit format depending on the length specified.
Syntax
pjs.getCurrentJobDateNumeric(args);Parameters
args (array) – Optional arguments:
args[0]– Desired length of the numeric return value.6= 6-digit format (MMDDYY,DDMMYY, orYYMMDD, depending on job date format).8= 8-digit format (MMDDYYYY,DDMMYYYY, orYYYYMMDD, depending on job date format). Default is8.
Behavior
Uses the job or session date returned by
getCurrentJobDate().Honors the job’s date format (
*MDY,*DMY,*YMD) or the override incontrolOptions.dateEdit.Defaults to
*MDYif no format is specified.Formats the date according to the specified length and returns it as a number.
Returns
Number – The current job or session date in either 6-digit or 8-digit numeric format.
Examples
// Example 1: Default (8-digit)
profound.getCurrentJobDateNumeric();
// Returns: 7162025 (for July 16, 2025 in *MDY format)
// Example 2: Explicit 6-digit
profound.getCurrentJobDateNumeric(6);
// Returns: 71625
See Also
pjs.getCurrentJobDate() - Returns the job/session date in date format.