CalendarConvert

CalendarConvert[date,calendar]

converts the date object date to the specified calendar type calendar.

CalendarConvert[date]

converts to the default calendar type.

CalendarConvert[{date1,,daten},calendar]

converts date1 through daten to the specified calendar.

Details

  • date specifications should be a DateObject expression.
  • Possible calendar types are: Automatic, "Gregorian", "Julian", "Jewish", and "Islamic".

Examples

open allclose all

Basic Examples  (1)

Convert from the Gregorian to the Julian calendar:

Convert from the Islamic to the Jewish calendar:

Applications  (2)

William Shakespeare died on April 23, 1616, in the Julian calendar:

In the Gregorian calendar, that corresponds to May 3:

Julian date 0 corresponds to this instant in the proleptic Gregorian calendar:

It is January 1, -4713 noon GMT in the Julian calendar:

Properties & Relations  (2)

DateObject[CalendarType->cal] is equivalent to CalendarConvert[DateObject[],cal]:

Dates between March 1, 200 and February 28, 300 coincide in the Gregorian and Julian calendars:

Possible Issues  (1)

For dates with coarse granularity, such as DateObject[{2013}], different calendars may not align completely.

In such cases CalendarConvert will use the midpoint of the given date for conversion:

Introduced in 2014
 (10.0)
 |
Updated in 2017
 (11.1)