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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:44:20+00:00 2026-06-07T03:44:20+00:00

I have a DateTime that is rendering in the grid via ClientTemplate() like this:

  • 0

I have a DateTime that is rendering in the grid via ClientTemplate() like this:

/Date(1294030800000)/

I know it is a valid date.

Has anyone seen this or can provide a clue as to what I am doing wrong?

  • 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-07T03:44:21+00:00Added an answer on June 7, 2026 at 3:44 am

    Here is what I did (thanks to SLaks for pointing out that it was a JSON date) which reminded me that the Telerik grid serializes responses as JSON when in Ajax mode.

    I created a helper function in my view:

    <script type="text/javascript" language="javascript">
        function ConvertToDateFromJSON(jsonDate) {
            var regex = /-?\d+/;
            var numbers = regex.exec(jsonDate);
            var d = new Date(parseInt(numbers[0]));
            return d;
        }
    </script>   
    

    And then the call to ClientTemplate goes like this:

    columns.Bound(model => model.DateAdmitted)              
        .Template(o => o.DateAdmitted.ToString("d"))
        .ClientTemplate(
             "<#= $.telerik.formatString('{0:MM/dd/yyyy}', ConvertToDateFromJSON(DateAdmitted)) #>"
        );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a datetime field like that. <field name=rel_date type=date indexed=true stored=true default=NOW multiValued=false/>
I have a datetime that I pulled from the database that looks like this:
I have a string representation of DateTime that looks like this: 2011-05-25T16:42:17.156Z I have
I have a MYSQL datetime that looks like this - 2011-08-28 12:39:21 I need
I have a DateTime instance that has a Date and a Time. How do
datetime.datetime.utcnow() Why does this datetime not have any timezone info given that it is
I have objects that has a DateTime property, how can i query for the
I have periods table that has start_at:datetime end_at:datetime . Because each period begins and
I have datetime strings that look can like any the following: 1 13 2009
We have a DateTime Service that pulls the Database date down when we need

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.