Genesys Cloud Certified Professional – Architect — Question 7

Which function returns a new instance of DateTime initialized with the specified values?

Answer options

Correct answer: A

Explanation

The correct answer is A, MakeDateTime(), as it specifically creates a new DateTime instance with the values provided. The other options do not serve this purpose; MakeDuration() is for creating durations, AddDuration() is used to modify existing DateTime objects, and ToDateTime() converts other types to DateTime without creating a new instance.