1.

__________ returns the date as a formatted string.(a) $toString(b) $dateToString(c) $letString(d) None of the mentionedThe question was posed to me in an interview for job.This question is from Pipeline Operators topic in chapter Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

Right OPTION is (B) $dateToString

Best explanation: $dateToString converts a date OBJECT to a string ACCORDING to a user-specified format.



Discussion

No Comment Found

Related InterviewSolutions