RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Is it possible to just show the year of release for a game?

    Scheduled Pinned Locked Moved Help and Support
    carbon themerelease datetheme help
    3 Posts 2 Posters 561 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      aidy80's
      last edited by

      Pi Model or other hardware: B+
      Power Supply used: Original Pi PSU
      RetroPie Version Used: 4.5.1
      Built From: retropie-4.5.1 -rpi2_rpi3.img.gz
      USB Devices connected: PS3 controller & usb keyboard
      Controller used: PS3 controller

      Hi, I like the carbon theme but wondered is there a way of editing the theme to just show the 4 digits of the year for a games release date rather than the full date? Without editing every entry for each games in a game list?

      For example if a date was 01/01/1986, just showing the 1986 rather that the full date.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • S
        smartazz104
        last edited by

        Suer, look for the tag <datetime name="md_releasedate">; within this you can add: <format>%Y</format>

        These are the available options as per https://github.com/RetroPie/EmulationStation/blob/master/THEMES.md:

        format - type: STRING. Specifies format for rendering datetime.
        %Y: The year, including the century (1900)
        %m: The month number [01,12]
        %d: The day of the month [01,31]
        %H: The hour (24-hour clock) [00,23]
        %M: The minute [00,59]
        %S: The second [00,59]

        A 1 Reply Last reply Reply Quote 0
        • A
          aidy80's @smartazz104
          last edited by

          @smartazz104 Thank you! A lot of the dates for games that I've scraped state the 1st of January because I think the exact date is unknown. I shall have a go at adjusting the theme.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

          Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.