question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default for format-date helper?

See original GitHub issue

Is there a way to specify the default format for format-date?

For example, whenever I do: {{format-date model.invoiceDate }}

I’d like it to do this by default: {{format-date model.invoiceDate month='2-digit' day='2-digit' year='numeric'}}

A step further, is there a way to specify a default format for a specific locale?

Thanks!

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
sbsurfcommented, Nov 6, 2018

Thanks @drewclauson. This was more a question for someone like @jasonmit. Didn’t want to open another issue, so I piggy-backed onto yours.

1reaction
drewclausoncommented, Feb 1, 2016

One more question, if I wanted to display the date in YYYY-MM-DD format for en-US, how would I do that?

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

FormatDate - IBM
FormatDate formats a date value according to a formatter defined with the NewDateFormatter function. This function is valid in TM1® TurboIntegrator processes ...
Read more >
Handlebar expressions for date and time format codes
Category Token Result Month M 7 Month Mo 7th Month MM 07
Read more >
helper-dateformat - npm
Template helper for adding formatted dates using node-dateformat. Works with Handlebars, Lo-Dash, underscore, or any template engine that ...
Read more >
Format a date from inside a Handlebars Template in Meteor
registerHelper ("formatDate", function(datetime, format) { // Use UI.registerHelper.. UI.registerHelper("formatDate", function(datetime, format) ...
Read more >
formatDate - Angular
If not specified, uses host system settings. Optional. Default is undefined . Returns. string : The formatted date string. See alsolink.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found