Photo by Patrick Tomasso on Unsplash

How to Backdate your Medium Posts (2023) (Updated)



When I was publishing my Integrating Frontend with Backend series, I published some of my articles out of order. Unfortunately, Medium does not offer a way for me to rearrange my articles or edit their dates, so they’re stuck like that forever.

Luckily, there is a way to create an entirely new post, but with it’s date set at a previous one. In this tutorial, I’ll show you how to “backdate” your Medium articles so that you can publish your articles back in time.

Backdating Your Medium Articles

Star, then fork the repository.
  • Then, press the fork icon to fork the repository.
  • Press “Create fork”:
Creating a fork of the repository
  • Determine the date and time you’d like your article to be published on. Convert that date and time into the ISO 8601 time format.
  • You can use this site here: scroll down to the UTC or Your Time Zone section, and put in the desired date and time. It will then convert the desired time into the ISO 8601 format. Any other site is fine as long as it gives the correct format.
  • Go inside backdate.html in your forked repository by pressing the file entry:
Do this in your forked repository, not my repository.
  • Press the pencil icon on the top left to edit the file:
Press the pencil button to edit the file.
  • At the top of the page, inside the <head> tag, you’ll find a <meta> tag with a “content” attribute. Replace the placeholder time inside the content attribute with the time you found in step 2.
Change the time inside the content attribute to your desired time.
  • Setup GitHub pages for your repository, so that we can access the HTML page on the internet: Go to Settings > Pages, then in the “Branch” section, select main, and press Save.
Setting up GitHub pages for importing.
  • Wait a few minutes for GitHub pages to build and be setup, and then access your page by going to https://[username]
  • (Replace [username] with your GitHub username. If you’ve changed the name of the repository, you’ll have to change “medium-import” as well.)
  • Go to your stories page on Medium. Click Import a story. Enter in the link for your backdate.html page, and click Import.
  • Note: If you do this multiple times, you may notice that sometimes your GitHub pages hasn’t updated to the version with the newest timestamp. If this happens, please wait a few minutes for GitHub pages to finish updating.
  • Worse case scenario: GitHub pages never updates. In this case, try editing the file again and also renaming the file in the top left corner to a new name. Then, wait a few minutes, and access the new file at https://[username][new_file_name] , replacing [new_file_name] with the name of the renamed file.

🎉 And that’s it! You’ve just backdated a Medium post. If you enjoyed this tutorial, feel free to drop me a follow on here or on GitHub.

Have fun!