• Preparing search index...
  • The search index is not available
SheetXL - v0.1.84
  • SheetXL
  • models/src
  • DateUtils
  • toOADate

Function toOADate

  • toOADate(date, date1904?): number
  • Encode date to oa date (ole automation, used by Excel)

    Parameters

    • date: Date
    • Optional date1904: boolean = false

      Whether to use the 1904 Date System. See https://bettersolutions.com/excel/dates-times/1904-date-system.htm

      http://markitondemand.github.io/moment-msdate/

      https://docs.microsoft.com/en-US/office/troubleshoot/excel/wrongly-assumes-1900-is-leap-year https://docs.microsoft.com/en-us/dotnet/api/system.datetime.tooadate?redirectedfrom=MSDN&view=net-5.0#System_DateTime_ToOADate https://bettersolutions.com/excel/dates-times/1904-date-system.htm

    Returns number

Settings

Member Visibility

Theme

SheetXL - v0.1.84
  • Loading...