/** Format date, time or timestamp String from Array
	* Limitation: only works for formats that require no conversion of
	*   elements, in practice these are only using Y, m, d, H, i and/or s
	* @static
	* @param Array of String $dtArray with keys from format
	* @param String $format
	* @return String
	*/
	static function formatDT($dtArray, $format) {
		$result = $format;
        foreach ($dtArray as $key => $value)
			$result = str_replace($key, $value, $result);
				
		return $result;
	}