Exporting date formats to code with Multilingual Drupal

One of the issues I came across while working on one of our main projects is that of exporting date formats to code in a multilingual Drupal (D7) setup [...]