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 9076639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:09:43+00:00 2026-06-16T19:09:43+00:00

I have a grid that has a JSON date field. I want to format

  • 0

I have a grid that has a JSON date field. I want to format the field using Moment.JS but can’t get the cellFormatter nor cellFilter fields to work.

See the following fiddle: http://jsfiddle.net/cooper/8NNAk/5/ that shows the problem.

I want to apply the formatting to the HTML / data-grid, not the data, for example I don’t want to do this:

function viewModel(){
    myArray = ko.observableArray([
        { MyDate: moment("/Date(1355875200000+0000)/").format('DD/MM/YYYY') },
        { MyDate: moment("/Date(1355875300000+0000)/"}.format('DD/MM/YYYY')} ]);
}

Update:
This fiddle doesn’t appear to be working in IE.

  • 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-06-16T19:09:44+00:00Added an answer on June 16, 2026 at 7:09 pm

    It should work with the following cellFilter function:

    cellFilter: function(data) { return moment(data).format('DD/MM/YYYY') }
    

    Here is how the full columndef looks like:

    columnDefs: 
        [
            { field: 'MyDate', displayName: 'DateTime', 
            cellFilter: function(data) { return moment(data).format('DD/MM/YYYY') } }
        ]
    

    Demo JSFiddle.

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

Sidebar

Related Questions

I have a grid that has multiple rows. I want to hide/show one of
I'm using .NET webforms. I have a grid view that can use Eval(Name) in
I have a Kendo grid that has been sort-enabled. I want to do an
I have a grid view that has a check box column, and I want
I have grid that has a list of about 16 documents that can change
I have a grid view that has two simple columns, a report number and
I have a Telerik Grid which has a footer that needs to display column
I have a partial view that uses a Telerik MVC Grid, and it has
I have Json data that has children elements. I need to bind the store
I have a data grid that has a checkbox item renderer in a cloumn

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.