DateTime formatting extension method(weblogs.asp.net)

submitted by thangchungthangchung(204) 1 year, 6 months ago

In current project, I get some troubles in DateTime class, about format the date time object with the pattern specific string and the current culture, so I decide to code some extension methods in DataTime class in .NET library. And I think it’s it very useful if somebody can use it as right way. I take some idea from this link and coding the enum class for its. After that I also used the Lambda Expression for...

1 comment |category: |Views: 250

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 sdormansdorman(1415) 1 year, 6 months ago 0

Useful approach, but makes use of a lambda expression for no good reason. This could be accomplished simply by passing the enum value to the extension method.

Reply

information Login or create an account to comment on this story