Unless if you’ve asked Luxon to throw an exception when it creates an invalid DateTime (see more on that below), it will fail silently, creating an instance that doesn’t know how to do anything. You can check validity with isValid:

That’s nice.

View the most recent posts on Hobo Signs by Macdrifter or all of the posts in the archive.