Create Date Object MongoDB new php driver -


i'm trying create date object create document in mongodb php.

i saw in php documentation new mongodate() i'm using 'new' drivers mongodb php7 (this doc) , can't use this.

i tried mongodb\bson\date got class 'date' not found

i searched across new driver documentation & stackoverflow nothing ...

does know how create date object 'new' php driver ?

the name of class \mongodb\bson\utcdatetime: http://php.net/manual/en/class.mongodb-bson-utcdatetime.php


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -