DATETIME TICKS FROM JAVASCRIPT TO MVC CONTROLLER

There are many circumstances in projects where you have to dynamically create the Uri in your JavaScript to call an action from one of the controllers. If you have to pass the date parameters using ticks, you have keep the following in mind.

tick conversion between JS and C#

Both sides (JavaScript in your browser and MVC controller’s .NET code) do now use the same frame of reference while converting to ticks.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: