Skip to content
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

Missing ability to format a date to a String #1706

Closed
sethladd opened this issue Feb 16, 2012 · 7 comments
Closed

Missing ability to format a date to a String #1706

sethladd opened this issue Feb 16, 2012 · 7 comments
Assignees
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. type-enhancement A request for a change that isn't a bug
Milestone

Comments

@sethladd
Copy link
Contributor

Building an app that needs to display dates. Would be really nice to have built-in support for formatting dates into Strings, configurable with a variety of patterns.

@sethladd
Copy link
Contributor Author

cc @floitschG.

@floitschG
Copy link
Contributor

This is probably something we want to tackle together with i18n.

@sethladd
Copy link
Contributor Author

sethladd commented Jun 8, 2012

cc @efortuna.

@sethladd
Copy link
Contributor Author

sethladd commented Jun 8, 2012

Added Library-i18n label.

@efortuna
Copy link
Contributor

efortuna commented Jun 8, 2012

Set owner to @efortuna.

@efortuna
Copy link
Contributor

Transferring this bug to Alan, who's been actually implementing date formatting. We've got date formatting in the i18n library. I think the question is should we do something further for overall date formatting outside of i18n for M1?


Set owner to @alan-knight.
Added this to the M1 milestone.

@alan-knight
Copy link
Contributor

I think that what we've done for i18n formatting seems adequate for M1 for general formatting. Seth can disagree if he wants. Current basic usage now (or as soon as the CL for async initialization goes in) is
#import('package:intl/date_format.dart');
#import('package:intl/date_symbol_data_local.dart');

initializeDateFormatting('en_US',null).then( (_) {
  var f = new DateFormat.yMd().Hms();
  print(f.format(new Date.now()));
);


cc @sethladd.
Added Fixed label.

@sethladd sethladd added Type-Enhancement area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. labels Sep 4, 2012
@sethladd sethladd added this to the M1 milestone Sep 4, 2012
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed type-enhancement labels Mar 1, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

5 participants