Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Uint to Longword

Status
Not open for further replies.

tezzyr

Programmer
Oct 6, 2006
21
GB
hi, apologies if this is in the wrong forum.

I have a timestamp which is stored as as a 32bit integer in a database. I need to convert this integer value back into an understandable format (datetime or string showing 12/12/2007 14:32:01 etc)At the moment is is a nine digit integer 769590025)the integer was originally a delphi Longword datatype.

I understand that longword datatypes are equivalent to UInt datatypes in C#. how can i convert this into a datetime value? maybe using something from System.Convert?

Thanks in advance and apologies again if this has been posted in the wrong place!
 
What does the integer you currently have represent? Normally it is the number of seconds since (some date/time) or some such thing.

You will need to know this in order to get the right date out of this value.

Hope this helps,

Alex

[small]----signature below----[/small]
I don't do any programming whatsoever

Ignorance of certain subjects is a great part of wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top