NumberToDate

Description

Given a numeric encoding of a date/time, returns the corresponding date/time value.

Type

DATETIME

Arguments

Type

Meaning

1

NUMERIC

The numeric encoding of a date/time value.

Comments

Slots representing date/time values have unit type DateTime. Internally these values are represented as numbers although the interface displays them as date/times. Looking up a value on such a slot will retrieve the numeric encoding, this function converts that number to a date/time value as required to treat it as a date within policy. If the unit for the slot corresponds to a partially specified date/time format, then the result will a partially specified date/time value.

 
NumberToDate(Data.PriorityDate[])
 

The above call might return @"January 12" if the Data.PriorityDate slot has units "MonthAndDate".

 

This function should be used in conjunction with dates on Series slots and the DateToNumber function See DateToNumber. A specific use example is shown .