How do I add the date when compiling a manuscript?

On iOS, I would like to have the date of compilation added automatically to the front matter.

I have tried to add <$longdate> but it doesn’t seem to work.

Can anyone help?