Posted By

zvasanth on 12/29/07


Tagged

get javascript time java script


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

umang_nine


Get Java Script Time


 / Published in: C#
 

URL: ideabubbling.com

drunkenprogrammer

  1. public static string GetJavaScriptTime()
  2. {
  3. Int64 retval = 0;
  4. DateTime st = new DateTime(1970, 1, 1);
  5. TimeSpan t = (DateTime.Now - st);
  6. retval = (Int64)(t.TotalMilliseconds + 0.5);
  7. retval = retval + 1000000;
  8. return retval.ToString();
  9. }

Report this snippet  

You need to login to post a comment.