Utilities.Extension - AydinAdn/NetUtilities GitHub Wiki

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();