Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
I move the comment to the question because my comment contains trial code so it difficult to read.
Source Link
unidha
  • 2.6k
  • 5
  • 40
  • 61

I want to compare today date and check is it fall into which fiscal month?How to retrieve what is start date and end date of the fiscal month?

When I am google I only found fiscal year and fiscal quarter.Please let me know if this possible or not.

-----------------Updated ---------------------------------

So I use Period object to query but here some confusing data return.

  1. Using THIS_MONTH

    Select StartDate, EndDate From Period Where type = 'Month' and StartDate = THIS_MONTH

It returns it return StartDate=2016-11-26 , EndDate =2016-12-31 , which is our next month(December).

  1. Using NEXT_MONTH Result no data return.

  2. Using LAST_MONTH it return two rows data which are current fiscal month and previous fiscal month(October and November).

I confuse, logically it should return November for THIS_MONTH, December for NEXT_MONTH and October for LAST_MONTH,

I want to compare today date and check is it fall into which fiscal month?How to retrieve what is start date and end date of the fiscal month?

When I am google I only found fiscal year and fiscal quarter.Please let me know if this possible or not.

I want to compare today date and check is it fall into which fiscal month?How to retrieve what is start date and end date of the fiscal month?

When I am google I only found fiscal year and fiscal quarter.Please let me know if this possible or not.

-----------------Updated ---------------------------------

So I use Period object to query but here some confusing data return.

  1. Using THIS_MONTH

    Select StartDate, EndDate From Period Where type = 'Month' and StartDate = THIS_MONTH

It returns it return StartDate=2016-11-26 , EndDate =2016-12-31 , which is our next month(December).

  1. Using NEXT_MONTH Result no data return.

  2. Using LAST_MONTH it return two rows data which are current fiscal month and previous fiscal month(October and November).

I confuse, logically it should return November for THIS_MONTH, December for NEXT_MONTH and October for LAST_MONTH,

Source Link
unidha
  • 2.6k
  • 5
  • 40
  • 61

How to retrieve start date and end date for fiscal month?

I want to compare today date and check is it fall into which fiscal month?How to retrieve what is start date and end date of the fiscal month?

When I am google I only found fiscal year and fiscal quarter.Please let me know if this possible or not.