© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
2 replies
Navi

Datetime ToString format not being respected

Maybe I'm being really stupid but for some reason it's not respecting the format specified in the ToString, if I replace the
:
:
with
-
-
then it does work. Although I can't do that as I'm working with a thirdparty api that only consumes it in this format
unknown.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ CopyLocalLockFileAssemblies in csproj not being respected?
C#CC# / help
2y ago
❔ problem with DateTime format
C#CC# / help
3y ago
DateTime format into DateOnly
C#CC# / help
4y ago