RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Ability to display string representation of date month?

    Scheduled Pinned Locked Moved Projects and Themes
    themesretropie theme
    4 Posts 2 Posters 476 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.
    • J
      jakong008
      last edited by

      As far as my research goes with the github documentation and this thread (https://retropie.org.uk/forum/topic/3710/ability-to-just-show-year-for-release-date/7), datetime can only be displayed in integers. Are there any workarounds to make us able to display a month to its string representation? Any leads and help are much appreciated.

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        I don't think there's any workaround possible at the moment - the DateTime component can only be formatted with numeric representations for day/month/year.

        J 1 Reply Last reply Reply Quote 0
        • J
          jakong008 @mitu
          last edited by

          @mitu Thank you for the response. Too bad there's no such option, hope there'll be such option in future updates.

          1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator
            last edited by

            @jakong008 EmulationStation learned recently to use strftime [1] compatible format string to represent the date, which allows you to use the month name (short/long) when displaying a date.

            You'll need to get the current -dev release in order to use this.

            [1] https://man7.org/linux/man-pages/man3/strftime.3.html

            1 Reply Last reply Reply Quote 1
            • 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.