Date/time conversion: Using the fuzzy date/time parser

Don't be afraid to mix in a bit of string parsing

There are going to be times when you need to parse or generate odd date formats which are not supported out of the box by the fuzzy date parser or os.date. In these situations it is good to remember that there is nothing wrong with whipping in and doing a bit of arbitrary string manipulation. The visual nature of the Translator excels at making this easy. There really is no limit to what you can do with the Translator.

For example an example of this check out Lev’s tip with parsing an odd date.

An elegant way to do this processing is to wrap the code up in a custom extension method. That makes it easy to use.

Leave A Comment?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.