MongoDate::__toString

Returns a string representation of this date

Note:

This extension that defines this method is deprecated. Instead, the MongoDB extension should be used. Alternatives to this method include:

  • MongoDB\BSON\UTCDateTime::__toString

Description

public string MongoDate::__toString ( void )

Returns a string representation of this date, similar to the representation returned by microtime.

Parameters

This function has no parameters.

Return Values

This date.