R
Ryan Ramsey
I am trying to convert a value returned from the date() function in php 5.0
to a format .NET can use.
DateTime dt_now = DateTime.Now;
DateTime dt_last = new DateTime(Convert.ToInt32(dkpLast[0][1]));
TimeSpan dt_diff = dt_now.Subtract(dt_last);
the value returned to dt_last is 1153455444 which is rougly July 20th ~ 10pm
When I compare this to dt_diff I get a delta value (via dt_diff.Days) of
roughly 73,000 days.
Im sure I am doing this wrong but I have scoured the web and there isn't
much information.
Please help... The object is to compare the current date vs. the date
returned and to derive how old the event is via dt_diff..
to a format .NET can use.
DateTime dt_now = DateTime.Now;
DateTime dt_last = new DateTime(Convert.ToInt32(dkpLast[0][1]));
TimeSpan dt_diff = dt_now.Subtract(dt_last);
the value returned to dt_last is 1153455444 which is rougly July 20th ~ 10pm
When I compare this to dt_diff I get a delta value (via dt_diff.Days) of
roughly 73,000 days.
Im sure I am doing this wrong but I have scoured the web and there isn't
much information.
Please help... The object is to compare the current date vs. the date
returned and to derive how old the event is via dt_diff..