|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Convert today's date and time to a longHi I have to convert am today's date and time (now) to a webservice.
The example the web service gives was "1163313527144#" which comes out to 12/31/1969 06:00 PM. How do I convert a date to a 13 digit long value? Holmsey wrote:
> Hi I have to convert am today's date and time (now) to a webservice. what format is that? There are lots of ways to represent a date as a> The example the web service gives was "1163313527144#" which comes out > to 12/31/1969 06:00 PM. How do I convert a date to a 13 digit long > value? long value... -- Tom Shelton Tom Shelton wrote:
> Holmsey wrote: Im am trying to figure out todays date as a long value from (A> > Hi I have to convert am today's date and time (now) to a webservice. > > The example the web service gives was "1163313527144#" which comes out > > to 12/31/1969 06:00 PM. How do I convert a date to a 13 digit long > > value? > > what format is that? There are lots of ways to represent a date as a > long value... > > -- > Tom Shelton millisecond value that is an offset from the Epoch, January 1, 1970 00:00:00.000 GMT (Gregorian).) Tom Shelton wrote:
> Holmsey wrote: Im am trying to figure out todays date as a long value from (A> > Hi I have to convert am today's date and time (now) to a webservice. > > The example the web service gives was "1163313527144#" which comes out > > to 12/31/1969 06:00 PM. How do I convert a date to a 13 digit long > > value? > > what format is that? There are lots of ways to represent a date as a > long value... > > -- > Tom Shelton millisecond value that is an offset from the Epoch, January 1, 1970 00:00:00.000 GMT (Gregorian).) Holmsey wrote:
Show quoteHide quote > Tom Shelton wrote: Ok... How 'bout:> > Holmsey wrote: > > > Hi I have to convert am today's date and time (now) to a webservice. > > > The example the web service gives was "1163313527144#" which comes out > > > to 12/31/1969 06:00 PM. How do I convert a date to a 13 digit long > > > value? > > > > what format is that? There are lots of ways to represent a date as a > > long value... > > > > -- > > Tom Shelton > > Im am trying to figure out todays date as a long value from (A > millisecond value that is an offset from the Epoch, January 1, 1970 > 00:00:00.000 GMT (Gregorian).) Dim epoch As New DateTime (1970, 1, 1, 0, 0, 0, 0) Dim diff As TimeSpan = DateTime.Now.Subtract (epoch) Dim ms As Long = CType (diff.TotalMilliseconds, Long) Console.WriteLine (ms)
How do you translate your WinForms app? (outsourcing localization)
how to make cookies into an array? How to recognize a Command Line parameter? Looking for a simple explanation of how to walk through a dataset in .net 2.0 Need pre-built report administration application Its Urgent: I have export database into excel file if office not installed then it gives me error Logic Troubles - reading in a difficult textfile Add new record to database Where is the VS mru list file stored? how sql xml query to get empty element tag |
|||||||||||||||||||||||