TwistPHP Documentation

date

File path: dist/twist/Core/Utilities/DateTime.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

dateGet 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).

Parameters

Name Type Description
[$strFormat = 'Y-m-d]stringn/a
[$intTimestamp = null]integern/a

Return Values

void — No return information has been documented for this function.

Example

<?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);