\DATE

DATE

Common date and time functions

Summary

Methods
Properties
Constants
__construct()
splitDate()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() : 

DATE

Returns

splitDate()

splitDate(  dateInput) : mixed||string|int

Take input from HTML FORM <input type=date> and split into separate fields.

Date comes in as 'yyyy-mm-dd' (but displayed on web form as 'dd / mm / yyyy'). All three fields must have a valid value else the form input is FALSE. This should be tested before calling this function.

Parameters

dateInput

Returns

mixed||string|int —

array(year, month, day)