/**
  * Return the date using a particular formatting string.
  *
  * @param string $format Format code string. e.g. "d M Y" (see http://php.net/date)
  * @return string The date in the requested format
  */
 public function Format($format)
 {
     if ($this->value) {
         // Return translated date string
         return LocalDateHelper::Format($format, $this->value);
     }
 }
 /**
  * Set which locale to use for dates (overrides current locale)
  *
  * @param string $locale Locale string, like "sv_SE", "en_US", "es", "fi" etc
  */
 public static function setLocale($locale)
 {
     self::$locale = $locale;
 }