This is a migrated thread and some comments may be shown as answers.

Client Template formatting a date

1 Answer 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Toby
Top achievements
Rank 1
Toby asked on 05 Aug 2011, 01:54 AM
Hey there,

Server stores dates in UTC and I am trying to format this invoice date to local time. I am using a client template and have been told the following:

 "In order to format date with Ajax binding then you should use this code snippet: .ClientTemplate("<#= InvoiceDate #>")
 InvoiceDate in this case will be JavaScript Date object. You can use JavaScript to convert it to local time."

--- so if anyone could explain how exactly I can manipulate this object to local time with javascript it would be much appreciated.

Cheers,

Toby Holland

1 Answer, 1 is accepted

Sort by
Tags
Grid
Asked by
Toby
Top achievements
Rank 1
Answers by
Mike
Top achievements
Rank 1
Share this question
or