How to convert metadata.image_text.datetaken to Date object

metadata.image_text.datetaken is a string, e.g. 18/09/2024 9:07:04 AM

Is there a quick way (JScript) of converting such a string to a Date object?

If using metadata.image.datetaken.Format() is not an option you will probably need some gymnastics to create a string that can be fed into new Date().

Is there a reason for using image_text if you want an object? The normal image will give you date objects.