Rounding a DateTime object to a defined number of minutes(the3factory.com)

submitted by tommyktommyk(870) 4 years, 2 months ago

ounding a DateTime up (or down) to the nearest number of minutes seems a simple requirement but is surprisingly unintuitive due to the relationships and different properties of DateTime and TimeSpan classes. I've come across some pretty dreadful examples on the web, so thought I'd post a much simp...

add a comment |category: |Views: 10

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story