namespace SAPO.Utility.Date
Class to provide the same features that php date does

Function Summary
String get (String format, [Date _date])
Functions that works exactly as php date() function - works like PHP 5.2.2 PHP Date function
Date set (String format, String str_date)
functions that works like php date() function but return a date based on the formatted string

Function Details

function get

String get(String format, [Date _date])
Functions that works exactly as php date() function - works like PHP 5.2.2 PHP Date function
Parameters:
format - as the string in which the date it will be formatted - mandatory
[_date] - the date to format. If undefined it will do it on now() date. Can receive unix timestamp or a date object
Returns:
the date formatted

function set

Date set(String format, String str_date)
functions that works like php date() function but return a date based on the formatted string
Parameters:
format - as the string in which the date it will be formatted - mandatory
str_date - the date formatted.
Returns:
the date