API/libsapojs/SAPO/Utility/Date

[Elements] are optional

Class SAPO.Utility.Date


class SAPO.Utility.Date
Class to provide the same features that php date does
Defined in Utility/Date/0.1/lib.js

Function Summary
String get ( format, _date)
Functions that works exactly as php date() function - works like PHP 5.2.2 PHP Date function

Function Details

function get

String get( format, _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