Skip to content
This repository has been archived by the owner on Dec 25, 2018. It is now read-only.

DateTime format #57

Open
oleksandrmelnychenko opened this issue Feb 11, 2017 · 2 comments
Open

DateTime format #57

oleksandrmelnychenko opened this issue Feb 11, 2017 · 2 comments

Comments

@oleksandrmelnychenko
Copy link

Do we have possibilities to change date time format as 'dd-mmm-yyy' for example ?

@electricessence
Copy link
Owner

There is currently nothing built in yet that would facilitate 'formatting' like .NET has. :(
That was a huge endeavor that I deferred. There are string formatting utilities added so you could:

supplant("{day}-{month}-{year}",myDateTime.calendar())

But that wouldn't do any digit manipulation nor would it convert to a localized naming convention for the months. :(

@electricessence
Copy link
Owner

There is also a .NET analog for Regex that allows for named matches and MatchEvaluators so that could also be used as a foundation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants