❔ How to remove 00:00 in datetime?
I have following datetime:
"{Value:dd.MM.yy HH:mm}"
which returns this: 01.01.2001 00:00
is it possible to remove 00:00
?11 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I need this:
01.01.2001 00:00 => 01.01.2001
01.01.2001 13:34 => 01.01.2001 13:34
remove only if 00
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
one moment
I use NodaTime so my full code looks like this:
NodaTime.LocalDateTime.Start.Value:dd.MM.yy HH:mm
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yep I can do it but I wanted to use datetime patters such as dd.mm etc
idk
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
sigh ok thanks
I will write a function for formatting instead
yeah just if the time is 0, use the format without the time
Pretty sure this is a fairly common issue that is not easily fixed...
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.