public static function parseFromDate($value, $format, $locale=null, $timeZone='UTC')
	{
		//default values
		$locale = $locale === null ? Yii::$app->language : $locale;

		//decide which parser to use
		if (strncmp($format, 'php:', 4) === 0) {
			$format = substr($format, 4);
		} else {
			if (ServerConfig::extIntlLoaded()) {
				return static::parseDateValueIntl($value, $format, $locale, $timeZone);
			} else {
				$format = FormatConverter::convertDateIcuToPhp($format, 'date');
			}
		}
		return static::parseDateValuePHP($value, $format, $timeZone);
	}