Public Member Functions | Data Fields
SqlDateTime Class Reference

Date and date-time to sql format conversion. More...

Inheritance diagram for SqlDateTime:

Public Member Functions

 toSqlDate ()
 
 toSqlDateTime ()
 

Data Fields

const DATEFORMAT = "Y-m-d"
 
const DATETIMEFORMAT = "Y-m-d H:i:s"
 

Detailed Description

Date and date-time to sql format conversion.

Version
1.2
Author
DinuSV

Member Function Documentation

toSqlDate ( )

Returns a string formated to the Date Mysql format

Returns
string : the date returned as mysql date string format
toSqlDateTime ( )

Returns a string formated to the DateTime Mysql format

Returns
string : the date returned as mysql datetime string format

Field Documentation

DATEFORMAT = "Y-m-d"

string : Date mysql format

DATETIMEFORMAT = "Y-m-d H:i:s"

string : DateTime mysql format