File path: dist/twist/Core/Utilities/DateTime.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
date
— Get the current date using the time function with the the framework defined method of getting the time. (Either natively from PHP or from the MySQL connection).
Name | Description |
---|---|
[$strFormat = 'Y-m-d] | n/a |
[$intTimestamp = null] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strFormat = 'Y-m-d;
$intTimestamp = null;
//Call the function date with the example vars
Twist::DateTime() -> date($strFormat, $intTimestamp);