OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – How do I? Questions DateHelper class Orocrm

This topic contains 2 replies, has 2 voices, and was last updated by  RSS 3 years, 4 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
  • #38131



    Under path: platform/src/Oro/Bundle/DashboardBundle/Helper/DateHelper.php
    There are predefined values already defined with constant values. Below are the parameter under Datehelper class

    const YEAR_TYPE_DAYS = 1460;
    const MONTH_TYPE_DAYS = 93;
    const WEEK_TYPE_DAYS = 60;
    const DAY_TYPE_DAYS = 2;
    const MIN_DATE = ‘1900-01-01’;
    What does above parameter means?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #38133

    Andrey Yatsenko

    Hi RSS,

    This is the number of days between dates, depending on which we show charts for different periods.
    For example, if the difference between the start date and the end date of the period is more than 1460, then the schedule will be constructed by year, if from 93 to 1460 – then by month, and so on



    For example,
    $startDate=’2019-02-13 00:00:00′;
    $endDate=’2019-02-13 00:00:55′;

    I want to plot x axis on basis of seconds as period or interval versus say temperature value. How do i plot this graph in oro? What should be the content in charts.yml file? Please help.

Viewing 2 replies - 1 through 2 (of 2 total)

The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.

Back to top

You will be redirected to [title]. Would you like to continue?

Yes No

You will be redirected to [title]. Would you like to continue?

Yes No