Jump to content
LaunchBox Community Forums
Sign in to follow this  
alondero

LastPlayed DateFormat

Recommended Posts

Apologies in advance if this is the wrong section. I'm looking to make a few tweaks to the Default theme and am struggling to make dates (like LastPlayed) to be formatted in European format (ie. dd/MM/yyyy rather than MM/dd/yyyy). I've tried the following on line 158 in GameDetailsView.xaml and it doesn't work, any ideas what I'm doing wrong?
 

<TextBlock Text="{Binding LastPlayed, StringFormat='dd/MM/yyyy HH:mm'}"

And
 

<TextBlock Text="{Binding Path=LastPlayed, StringFormat='dd/MM/yyyy HH:mm'}" 

but neither seems to have the effect.

Share this post


Link to post
Share on other sites

Should also be able to just use:

Text="{Binding LastPlayed, StringFormat={}{0:dd/MM/yyyy}}"

or can use the OS settings by using the following:

Text="{Binding LastPlayed, StringFormat={}{0:d}}"

Share this post


Link to post
Share on other sites

Just looked though and we bind LastPlayed as a string not a DateTime so that won't work. Won't currently be able to change the date format that way.

Share this post


Link to post
Share on other sites

Ah thanks for replying so quickly @C-Beats. That's a shame about LastPlayed, should I wait for the next poll to suggest this or do you still look at BitBucket items? Would be great to have dates localised 🙂  

Share this post


Link to post
Share on other sites
19 minutes ago, alondero said:

Ah thanks for replying so quickly @C-Beats. That's a shame about LastPlayed, should I wait for the next poll to suggest this or do you still look at BitBucket items? Would be great to have dates localised 🙂  

Pretty sure we have a ticket for it, but if not that is the best place for it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...