digitalmars.D.learn - What can I use to parse a date string in a custom format?
- PacMan (11/11) Nov 27 2018 I've been looking for a function or library to parse a date in a
- Neia Neutuladh (3/8) Nov 27 2018 http://code.dlang.org/packages/datefmt didn't do it for you?
I've been looking for a function or library to parse a date in a TryParseExactbut I couldn't find any. so far I only found fromISOExtString(), and fromSimpleString() which doesn't allow me to set a custom string format. I've looked up at https://code.dlang.org/search?q=date https://code.dlang.org/search?q=date+parsing but to my surpise I didn't find either. Am I using wrong keywords or there's no really such method implemented yet? [1]: https://docs.microsoft.com/en-us/dotnet/api/system.datetime.tryparseexact?redirectedfrom=MSDN&view=netframework-4.7.2#System_DateTime_TryParseExact_System_String_System_String_System_IFormatProvider_System_Globalization_DateTimeStyles_System_DateTime__
Nov 27 2018
On Tue, 27 Nov 2018 18:22:17 +0000, PacMan wrote:I've been looking for a function or library to parse a date in a custom TryParseExactbut I couldn't find any. so far I only found fromISOExtString(), and fromSimpleString() which doesn't allow me to set a custom string format.http://code.dlang.org/packages/datefmt didn't do it for you? ...that readme is pretty terrible, granted.
Nov 27 2018