Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Current job date returned as a number in MMDDYY format.

Return Value

6 digit date in *MDY format.

 

This reserved word returns the current job or session date as an 8 digit number in MMDDYYYY format.

Example

Code Block
languagejavascript
/*If the current date is May 8th 2017*/
pjs.define("myDate", { type: 'packed decimal', length: 68, decimals: 0 })
 
myDate = udate;
 
// If the session started on May 8th, return2018, myDate;
//050817

...

 will hold the value 5082018


RPG Equivalent

UDATE