Please note that my question is closely linked to this question. However, as the above question is technically already answered in the comments and I am still very curious to understand this particular locale code I have decided to open this question:
The following formula will convert calendar dates to Chinese lunar dates
=TEXT(A1,"[$-130000]d/m/yyyy")
[$-130000] is a locale code just as the ones explained in this question
As I am not able to find this locale code anywhere here is my question: Where does $-130000 come from? Is this an Excel specific locale function?
First off, I believe the function is technically inaccurate (and CAN produce incorrect information depending on your system settings) as excel is excepting an eight digit number. The correct format is technically... xxyyzzzz
xx = 00
yy = 13
zzzz = 0000
If you do not use the first two digits, then Microsoft will determine that you are using '00' instead. Which this translate to using your Default System Settings (See Below).
the first two digits (xx) represent the appearance of the number (xxyyzzzz):
The next two digits (yy) represents the calendar format (xxyyzzzz):
Lastly, the final four digits (zzzz) represent the language code (xxyyzzzz):
If you want to test my findings for your self, then you could try this as an example:
xx = 1E = Simplified Chinese 1, Chinese Lowercase (it's easier to translate for me)
yy = 02 = Gregorian Calendar (United States)
zzzz = 0404 = Traditional Chinese
This will translate to:
二月 ○五 二○一九
Which if you translate this from Chinese to English, you will get February Five 2019. Or you could try this if you still don't believe me...
xx = 00 = Default System Settings - Mine is set to English-US
yy = 08 = Jewish Calendar (Again, Not Published)
zzzz = 0409 = English (US) (or I could have set it to 0000 for the same result on my PC)
This will convert the date to the Jewish Calendar, which would be "Shvat 30 5779."
Sources:
Learning more about LCID = https://msdn.microsoft.com/en-us/globalization/mt778914.aspx https://docs.microsoft.com/en-us/windows/desktop/Intl/language-identifiers
More information about the LCID = https://docs.microsoft.com/en-us/windows/desktop/Intl/language-identifier-constants-and-strings
Library List of Sort IDs and Language IDs: https://msdn.microsoft.com/en-us/library/cc233968.aspx
Calendar IDs - https://docs.microsoft.com/en-us/windows/desktop/Intl/calendar-identifiers
Lastly (A lot of hours reading all of these reference links) - https://docs.microsoft.com/en-us/windows/desktop/Intl/national-language-support-constants