You need to sign in to do that
Don't have an account?

How to avoid SFDC year defect and get correct year of current date
Hi,
Recently we met a issue that if login user's locale is Thailand, current date's year will become Buddhist calendor 2559 instead of 2016, it is a known issue of Salesforce, see https://success.salesforce.com/issues_view?id=a1p3A000000IXkpQAG
Is there anyone know how to avoid this defect and get correct year of current date even login user's locale is Thailand?
Thanks & regards,
WenLong Tan
Recently we met a issue that if login user's locale is Thailand, current date's year will become Buddhist calendor 2559 instead of 2016, it is a known issue of Salesforce, see https://success.salesforce.com/issues_view?id=a1p3A000000IXkpQAG
Is there anyone know how to avoid this defect and get correct year of current date even login user's locale is Thailand?
Thanks & regards,
WenLong Tan
You can get system year by printing it. If you need it in Integer format, you can do it this way:
This way, the year you get will not be affected by Thai locale.
All Answers
This is not possible
check out this--https://help.salesforce.com/articleView?id=000004385&language=en_US&type=1
You can get system year by printing it. If you need it in Integer format, you can do it this way:
This way, the year you get will not be affected by Thai locale.