Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7033747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:06:09+00:00 2026-05-28T01:06:09+00:00

My backbone collection fetches its models without issue. The model returns {{=calldate}} in the

  • 0

My backbone collection fetches its models without issue.

The model returns {{=calldate}} in the sql date format. How should I reformat the date from within the model so that the date is readable in the template as rendered by the view? thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:06:09+00:00Added an answer on May 28, 2026 at 1:06 am

    Date prettification is a presentation-level activity and shouldn’t be done in the model. Either add the formatting logic directly to your template and/or, preferably, create a formatting helper that you can call from any template to format dates prettily and consistently.

    There are many prettification libraries. Here’s one: http://blog.stevenlevithan.com/archives/date-time-format

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a Backbone.Collection full of models; let's say that model is Car .
Following the documentation , I did: var collection = new Backbone.Collection.extend({ model: ItemModel, url:
I have a collection of models in my Backbone.js application. It's a list of
What is the aim of specifying a model in a Backbone collection? It seems
let's say I have : var Book = Backbone.Model.extend(); var Collection = Backbone.Collection.extend({ model:
My Backbone Collection receives 30 models on fetch(). I have tried newColl=origColl.first(2); to return
I have the following Backbone.js model and collection: // Model lr.Event = Backbone.Model.extend({}); //
I have a super simple Backbone model/collection that wraps around a facebook feed. window.Story
I'm exploring backbone.js framework and I'm interested how can I fetch collection's model from
How can I bind a backbone view to a collection rather than a model?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.