Class MatukioHelperDate
| since | 1.0.0 |
|---|---|
| package | MatukioEvents |
calculateCount(\DateTime $begin, \DateTime $until, string $type, array $week_day, array $month_week) : float | integer
\DateTime\DateTimestringarrayarrayfloatinteger
convertPhpDatetoCalendar(string $dateFormat) : string
. Very weird format, following calendar.js
| since | 7.0.0 |
|---|
stringThe PHP Date format
stringdatediffInWeeks(\DateTime $first, \DateTime $second) : float
\DateTime\DateTimefloatgetCurrentDate() : string
stringgetDateInput(string $name, string $value= '', null $format= null, null $id= null, string $cssClass= 'co-date') : mixed
| since | 7.0.0 |
|---|
stringName of the element
stringValue of the element
nullFormat of the element
nullId of the element
stringCSS Classes for this Input Element
mixedgetDateTimeInput(string $name, string $value= '', $required= true, null $format= null, null $id= null, string $cssClass= 'co-date') : mixed
| since | 7.0.0 |
|---|
stringName of the element
stringValue of the element
nullFormat of the element
nullId of the element
stringCSS Classes for this Input Element
mixedgetTimezone(\Date $date) : string
\DateThe date Obj
string