Comment by ThePerito on 20/08/2020 at 21:06 UTC

8 upvotes, 1 direct replies (showing 1)

View submission: Updated Feature: Scheduled & Recurring Posts

How do I set the title to be

/r/MYSUB Help Thread - {{date %b %-d %Y}}

couldn't find the date option anywhere

Replies

Comment by ideboi at 20/08/2020 at 21:34 UTC

17 upvotes, 11 direct replies

To add the date to your scheduled post title, use the placeholder {{date <format>}} in the post title. The format section uses Python's strftime() formatting[1]. For example, if you want a title that says "Daily Scheduled Post - August 20, 2020", this would be the title:

1: https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes

"Daily Scheduled Post - {{date %B %d, %Y}}".

Once the post is submitted, the placeholder will be replaced with the formatted date.

You can also display dates other than the current date by adding an optional positive or negative offset. For example, to display the date 6 days ahead, you would do {{date+6 <format>}}. The date from 3 days before would be {{date-3 <format>}}, and so on.

Note that the date will be in UTC timezone by default