DateTime to String Converter #125
Replies: 4 comments 6 replies
-
Sounds like a cool idea! Do you have a API spec or a implementation you could share? I'd also love to see a way to include/handle
|
Beta Was this translation helpful? Give feedback.
-
Please take a look at my sample repo - https://github.com/ziomek64/Converters , bear in mind that is a Forms project. Simple page with code behind and a converter. I haven't touched the code since my initial post. Let me know what you think and how exactly would you like to see those APIs handled after having a look. |
Beta Was this translation helpful? Give feedback.
-
I really like this idea. A couple of comments:
|
Beta Was this translation helpful? Give feedback.
-
Closed as per the Community Stand-up discussion here: https://youtu.be/N9wMcBP4jtg?t=2889 |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'd like to make a proposal of DateTime to String converter. Why should someone need such converter? Well, you can bind Text to DateTime and use formattedstring, but it might not allow you to do stuff like AM/PM distinction (from what I've tried). This is not much, but someone might want it :)
I've personally needed it so I've made some rough code and it works so I thought I might contribute. It accepts all formats mentioned in this page https://docs.microsoft.com/en-us/dotnet/api/system.datetime.tostring?view=net-5.0 as a parameter. The code probably needs a styling such as you use. I made it for Forms though but I noticed you don't accept new contributions there or did that change since maui got pushed? I could try to make it for MAUI or for Forms if you think i can do it there.
Beta Was this translation helpful? Give feedback.
All reactions