LLMS_Quiz_Attempt::get_date( string $key, string $format = null )
Retrieve a formatted date
Description Description
Parameters Parameters
- $key
-
(string) (Required) start or end
- $format
-
(string) (Optional) output date format (PHP), uses wordpress format options if none provided
Default value: null
Return Return
(string)
Source Source
File: includes/models/model.llms.quiz.attempt.php
public function get_date( $key, $format = null ) { $date = strtotime( $this->get( $key . '_date' ) ); $format = ! $format ? get_option( 'date_format' ) . ' ' . get_option( 'time_format' ) : $format; return date_i18n( $format, $date ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: