How to calculate
Count elapsed days from the GMT correlation’s Maya epoch. Divide the result into baktun, katun, tun, uinal, and kin units for the Long Count. Use the same day offset to advance the two cycles.
Worked example
Use Convert Gregorian date to Maya calendars · Gregorian date YYYY-MM-DD 2012-12-21. The result is 13.0.0.0.0.
Input and result notes
Use astronomical year numbers for older Gregorian dates. Year 0000 represents 1 BCE, and −3113 represents 3114 BCE. For negative years enter an ASCII minus sign.
Smithsonian overview of the Maya calendar system