Class MatukioHelperDate
since | 1.0.0 |
---|---|
package | MatukioEvents |
calculateCount(\DateTime $begin, \DateTime $until, string $type, array $week_day, array $month_week) : float | integer
\DateTime
\DateTime
string
array
array
float
integer
convertPhpDatetoCalendar(string $dateFormat) : string
. Very weird format, following calendar.js
since | 7.0.0 |
---|
string
The PHP Date format
string
datediffInWeeks(\DateTime $first, \DateTime $second) : float
\DateTime
\DateTime
float
getCurrentDate() : string
string
getDateInput(string $name, string $value= ''
, null $format= null
, null $id= null
, string $cssClass= 'co-date'
) : mixed
since | 7.0.0 |
---|
string
Name of the element
string
Value of the element
null
Format of the element
null
Id of the element
string
CSS Classes for this Input Element
mixed
getDateTimeInput(string $name, string $value= ''
, $required= true
, null $format= null
, null $id= null
, string $cssClass= 'co-date'
) : mixed
since | 7.0.0 |
---|
string
Name of the element
string
Value of the element
null
Format of the element
null
Id of the element
string
CSS Classes for this Input Element
mixed
getTimezone(\Date $date) : string
\Date
The date Obj
string