function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Is there any visualforce methods to get fiscal year and months based on Date

Pass a date to visualforce method to get fiscal year and fiscal month in visualforce page.


There is one table available in sfdc schema (you can view it from your eclipse schema IDE) call "fiscal perod". When you will fire SOQL query, you will be able to retrive current fiscal quarter & fiscal year using current date.


If you wish to get current calendar month, there is a method directly available in Date class of apex.


You can use such logic inside your controller class of vf page.


-- alok


I dont want to query fiscal year. Is there any function to get user fisal year in visualforce page.