format('w')]; } /** * @param \DateTime|int|string $max maximum timestamp used as random end limit, default to "now" * @return string * @example '2' */ public static function dayOfMonth($max = 'now') { return static::dateTime($max)->format('j'); } /** * Full date with inflected month * @return string * @example '16. listopadu 2003' */ public function formattedDate() { $format = static::randomElement(static::$formattedDateFormat); return $this->generator->parse($format); } }