Skip to main content
Skip table of contents

Javascript Utilities

Access point to javascript utilities is at

Q4Utils

object.

Methods

convertToClientDate (aspNetJSONDateTojsDate is old)

Is used to convert the date received from the server in the format "/Date(1320966000000-0600)/" to JavaScript Date object. It always must be used because it adjusts Date object in the browser timezone to the timezone in the date received (-0600 in this case).

sample: var dateObject = Q4Utils.convertToClientDate("/Date(1320966000000-0600)/");

convertToServerDate (jsDateToAspNetJSONDate is old)

Is used to convert javascript Date object to string in ASP.NET JSON format like "/Date(1320966000000)/"

sample: var dateString = Q4Utils.convertToServerDate(new Date());

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.