c# - Is there a way to convert a DateTimeOffset into minutes since midnight? -


is there way convert datetimeoffset minutes since midnight?

i want offset part reflected in answer gives.

datetimeoffset.utcdatetime.timeofday.totalminutes 

returns number of minutes since midnight original date/time offset subtracted

so if date/time = jan 2 2013 , offset =8 hours, return 16 hours (since jan 1 midnight)


Comments