ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:dbdate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
v5:reference:connection:dbdate [2025/07/11 03:03] mnewnhamv5:reference:connection:dbdate [2025/07/11 03:22] (current) mnewnham
Line 4: Line 4:
 == syntax == == syntax ==
   string dbDate(   string dbDate(
-      float|object $timestamp,+      string|float|object $timestamp,
       optional bool $isFieldValue = false       optional bool $isFieldValue = false
         )         )
Line 13: Line 13:
  
 Note that the returned value already includes any required quoting Note that the returned value already includes any required quoting
 +
 +If the passed value is empty, the the string **null** is returned.
 +
 +If the optional argument //**$isFieldValue**// is true, then the passed value is returned unmodified
 +
 +
  
 ===== Usage ===== ===== Usage =====
v5/reference/connection/dbdate.txt · Last modified: by mnewnham