DateTime & TimeSpan code snippets (19)

How to remove milliseconds from DateTime

Published: 30. January 2012 | Updated: 30. January 2012
Categories: DateTime & TimeSpan
Tags: C# DateTime

How to convert time to UTC

Published: 12. October 2011 | Updated: 3. November 2011
Categories: DateTime DateTime & TimeSpan
Tags: C# Conversion DateTime

How to convert time from UTC

Published: 12. October 2011 | Updated: 3. November 2011
Categories: DateTime DateTime & TimeSpan
Tags: DateTime C# Conversion

How to get UTC date-time

Published: 12. October 2011 | Updated: 3. November 2011
Categories: DateTime & TimeSpan
Tags: C# DateTime

How to validate DateTime

Published: 27. October 2011 | Updated: 27. October 2011
Categories: DateTime & TimeSpan
Tags: C# Text Validation

How to combine date and time

Published: 27. October 2011 | Updated: 27. October 2011
Categories: DateTime & TimeSpan
Tags: C# DateTime

How to get actual year

Published: 9. October 2011 | Updated: 26. October 2011
Categories: DateTime & TimeSpan
Tags: C# DateTime

How to get yesterday's date

Published: 9. October 2011 | Updated: 26. October 2011
Categories: DateTime & TimeSpan
Tags: C# DateTime

How to get days in month

Published: 9. October 2011 | Updated: 26. October 2011
Categories: DateTime & TimeSpan
Tags: C# DateTime

How to get last day of month

Published: 9. October 2011 | Updated: 26. October 2011
Categories: DateTime & TimeSpan
Tags: C# DateTime

How to get information about local time zone

Published: 12. October 2011 | Updated: 26. October 2011
Categories: Calendar DateTime & TimeSpan
Tags: C# DateTime

How to get system time zones

Published: 12. October 2011 | Updated: 26. October 2011
Categories: Calendar DateTime & TimeSpan
Tags: C# DateTime

How to find out whether year is leap year

Published: 24. October 2011 | Updated: 26. October 2011
Categories: DateTime & TimeSpan
Tags: C# DateTime

How to add TimeSpan to DateTime

Published: 24. October 2011 | Updated: 26. October 2011
Categories: DateTime & TimeSpan
Tags: C# DateTime Math

How to subtract TimeSpan from DateTime

Published: 24. October 2011 | Updated: 26. October 2011
Categories: DateTime & TimeSpan
Tags: C# DateTime Math

How to sum two TimeSpans

Published: 24. October 2011 | Updated: 26. October 2011
Categories: DateTime & TimeSpan
Tags: C# DateTime Math

How to subtract TimeSpan from TimeSpan

Published: 24. October 2011 | Updated: 26. October 2011
Categories: DateTime & TimeSpan
Tags: C# DateTime Math

How to negate TimeSpan value

Published: 24. October 2011 | Updated: 26. October 2011
Categories: DateTime & TimeSpan
Tags: C# DateTime Math

How to convert time between two time zones

Published: 12. October 2011 | Updated: 26. October 2011
Categories: DateTime DateTime & TimeSpan
Tags: C# Conversion DateTime