This post shows up still in 2019 🔢 #2483
Unanswered
bswatantra
asked this question in
Q&A
Replies: 1 comment 1 reply
-
while fetching data I get
but I want it
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This post shows up still in 2019 🔢
use MongoDB\BSON\UTCDateTime;
new UTCDateTime(new \DateTime('now'));
Carbon extends DateTime so a carbon instance should be usable:
new UTCDateTime(Carbon::now());
Originally posted by @marcnewton in #594 (comment)
Beta Was this translation helpful? Give feedback.
All reactions