How do I access other plugins' settings?

Thank you! I can get the object for the Daily Notes plugin, but retrieving the format logs an error: Uncaught (in promise) TypeError: dailyNotesPlugin.getFormat is not a function. So if that works for you, I have no idea what’s going on with mine.

I experimented a little and got this far:

let dailyNotesPluginOptions = dailyNotesPlugin.instance.options;
let dateFormat = dailyNotesPluginOptions.dateFormat;

which doesn’t throw an error, but dateFormat is undefined.

Any ideas?