Avoid DateTime.Parse()(johnnycoder.com)

submitted by bengriswoldbengriswold(184) 5 years, 7 months ago

This article comments about DateTime.Parse() poor performance and provides an alternate approach.

1 comment |category: |Views: 46

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:

posted by DamienGDamienG(1405) 5 years, 7 months ago 0

Only worth avoiding if you know the exact format the date will be in. DateTime.Parse is otherwise still the best option for locale-aware date parsing.

Reply

information Login or create an account to comment on this story