Endpoint: Dates: Difference between revisions

From OdataLink
Jump to navigation Jump to search
No edit summary
No edit summary
Line 60: Line 60:
;MM
;MM
:A [[Field Type: Text|text field]] that provides the month as 2 digits.
:A [[Field Type: Text|text field]] that provides the month as 2 digits.
:e.g. '07'
:e.g. '08'


;MMM
;MMM
Line 72: Line 72:
;MM-MMM
;MM-MMM
:A [[Field Type: Text|text field]] that provides the month as 2 digits and 3 letters.
:A [[Field Type: Text|text field]] that provides the month as 2 digits and 3 letters.
:e.g. '07-Aug'
:e.g. '08-Aug'


;MM-MMMM
;MM-MMMM
:A [[Field Type: Text|text field]] that provides the month as 2 digits and 4 letters.
:A [[Field Type: Text|text field]] that provides the month as 2 digits and 4 letters.
:e.g. '07-August'
:e.g. '08-August'


;MM-YY
;MM-YY
:A [[Field Type: Text|text field]] that provides the month as 2 digits for the month and 2 digits for the calendar year.
:A [[Field Type: Text|text field]] that provides the month as 2 digits for the month and 2 digits for the calendar year.
:e.g. '07-21'
:e.g. '08-21'


;MM-YYYY
;MM-YYYY
:A [[Field Type: Text|text field]] that provides the month as 2 digits for the month and 4 digits for the calendar year.
:A [[Field Type: Text|text field]] that provides the month as 2 digits for the month and 4 digits for the calendar year.
:e.g. '07-2021'
:e.g. '08-2021'


;MMM-YY
;MMM-YY

Revision as of 19:22, 2 September 2021

Overview

The MYOB Dates endpoint allows you to access the list of foreign currencies used in MYOB.

This endpoint is not part of the MYOB API but specific to OdataLink to ease development.


Fields

The following fields are available for the Dates endpoint.

Date
A date field that provides the date.
DatesByMonthID
A text field used to link to the DatesByMonth endpoint.
FinancialYear
A intger field that provides the financial year for this date.
FinancialMonth
A intger field that provides the financial month period for this date.
CalendarYear
A intger field that provides the calendar year for this date.
CalendarMonth
A intger field that provides the calendar month for this date.
DisplayStrings
A record field that provides many preformatted display strings.
See DisplayStrings Fields for more information.


DisplayStrings Fields

The DisplayStrings field contains the following sub-fields.


PP
A text field that provides the period index as 2 digits.
e.g. '02'
PP-MMM
A text field that provides the period index as 2 digits for the period index and 3 letters for the month.
e.g. '02-Aug'
PP-MMMM
A text field that provides the period index as 2 digits for the period index and all letters for the month.
e.g. '02-August'
PP-YY
A text field that provides the period index as 2 digits for the period index and 2 digits for the financial year.
e.g. '02-21'
PP-YYYY
A text field that provides the period index as 2 digits for the period index and 4 digits for the financial year.
e.g. '02-2021'
MM
A text field that provides the month as 2 digits.
e.g. '08'
MMM
A text field that provides the month as 3 letters.
e.g. 'Aug'
MMMM
A text field that provides the month as 4 letters.
e.g. 'August'
MM-MMM
A text field that provides the month as 2 digits and 3 letters.
e.g. '08-Aug'
MM-MMMM
A text field that provides the month as 2 digits and 4 letters.
e.g. '08-August'
MM-YY
A text field that provides the month as 2 digits for the month and 2 digits for the calendar year.
e.g. '08-21'
MM-YYYY
A text field that provides the month as 2 digits for the month and 4 digits for the calendar year.
e.g. '08-2021'
MMM-YY
A text field that provides the month as 3 letters for the month and 2 digits for the calendar year.
e.g. 'Aug-21'
MMMM-YYYY
A text field that provides the month as 4 letters for the month and 4 digits for the calendar year.
e.g. 'August-2021'


MYOB API

This endpoint is not part of the MYOB API but specific to OdataLink to ease development.


Related Endpoints

DatesByMonth
DatesByYear