JulianDate

To the given UNIX date, get its Julian date.

Syntax

JulianDate ( date )
ParameterDescription

date

A number representing the input date between January 1, 1970 and Dec 31, 2037. The number is the number of seconds elapsed since midnight, January 1, 1970. To retrieve this number, use any of the following functions: Today(), TodateEx(), GetFirstDate(), GetLastDate(), DateRoll().

Date-Time type attribute properties of a member can also be used to retrieve this number. For example: Product.currentmember.[Intro Date] returns the Introduction or release date for the current product in context. [Cola].[Intro Date] returns the Introduction or release date for the “Cola” product.

Notes

Return Value

This function returns juliandate, a number representing the Julian date. This number is a continuous count of days and fractions elapsed since noon Universal Time on January 1, 4713 BC in the proleptic Julian calendar.

Note:

For Excel workbooks using 1900 date system, (JulianDate – 2415018.50) gets the sequential serial number as per 1900 date system.

Example

The following query returns the total monthly sales for all Colas along with their release dates as in 1900 Date system in market “California” for “March 2007.”

WITH MEMBER 
 Measures.[Product Intro Date] 
AS 
 'JulianDate(Product.CurrentMember.[Intro Date]) – 2415018.50'
SELECT
 {Measures.[Product Intro Date], Measures.Sales}
ON COLUMNS,
 {Colas.Children}
ON ROWS
FROM Sample.Basic
WHERE 
 (California, [March 2007], Actual);

See Also

  • UnixDate