You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fatih Aydin edited this page Jan 29, 2014
·
3 revisions
There are a number of extension methods provided by NetUtilities achieving different tasks, the list below details them all.
To convert a byte array to a string: string convertedBytes = bytes.ConvertToString();
To convert the UTC Date/Time to EPOCH: long epochTime = dateTime.ToUtcEpoch();
To convert Epoch to local time: DateTime localTime = epochTime.ConvertEpochToLocalDateTime();
To convert Epoch to UTC time: DateTime utcTime = epochTime.ConvertEpochToUtcDateTime();