Hi All, How can I add a counter for the date in a publication ? Is there a way to do so ? Or do I need to accept the risk of having a February 35th with a regular counter ?
As others have said, it's #[InjectDate()]#, where the arguments are from the PHP's DateTime::format() method.
#[InjectDate()]#
For a string like February 28th you can use:
February 28th
#[InjectDate('F jS')]#
You simply write it as part of the title, like this: Hello, today is #[InjectDate('F jS')]# which right now would say Hello, today is May 7th.
Hello, today is #[InjectDate('F jS')]#
Hello, today is May 7th
Note that it only woks in the title, not the post body.
You will see the preview of the title if it was posted right now under the title box so you can be sure it's correct.
This is an official support forum for Lemmy Schedule.
Links:
As others have said, it's
#[InjectDate()]#, where the arguments are from the PHP's DateTime::format() method.For a string like
February 28thyou can use:#[InjectDate('F jS')]#You simply write it as part of the title, like this:
Hello, today is #[InjectDate('F jS')]#which right now would sayHello, today is May 7th.Note that it only woks in the title, not the post body.
You will see the preview of the title if it was posted right now under the title box so you can be sure it's correct.