-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Spec] DateTime
converters
#75
Labels
enhancement
New feature or request
Comments
haavamoa
added
enhancement
New feature or request
in-progress
When work is started
labels
Dec 16, 2019
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
When dealing with
DateTime
in apps we need to display both date and time in a human readable way. The currentToString()
ofDateTime
is not very readable.Our API should have different converters that can be used for date and time.
API Changes
Our API should include three more converters:
DateConverter
DateTime
and convert it into a human readable date stamp.TimeConverter
DateTime
and converter it into a human readable time stamp.DateTimeConverter
DateTime
and convert it into a human readable date time stamp.Each converter should:
IMarkupExtension
.Format
property that will change the format of the output. (I.e;Default
,Short
,Long
...)Norwegian
format, which should be controlled through current culture settings on each phone.Remark
Our converters should be based on the current date time converters that are being used in DIPS desktop client:
DIPS Arena
The different formats that the converters should support will be the same ones as we support in
DIPS Arena
.Intended Use Case
A consumer wants to display an
CreatedDate
that he has collected from the database. The date should be displayed in a human readable way.CreatedDate
is 01 january 1990 11:00 AMWithout converters
Result
With
DateConverter
Result
With
TimeConverter
Result
With
DateTimeConverter
Result
The text was updated successfully, but these errors were encountered: