Display datetime based on user’s timezone in Asp.Net MVC

When creating an internet application/website, your users located anywhere in the world, therefore it’s important to let user to choose their own timezone and display the datetime information according to their location.

In this article, I am going to show you how to display all available Timezone information using Asp.Net MVC, and convert the original datetime to selected Timezone datetime.

img
Continue reading “Display datetime based on user’s timezone in Asp.Net MVC”

Advertisement

New Hosting, New Name

Finally, I had my blog moved to the new hosting. Besides that I gave the new name to my blog. It’s “Tien’s Blog” instead of “Platformular’s blog” which “Platformular “was the name of my Dev house. 

There are a few projects I am working on right now as well as blog articles. Hopfully they will be published soon.

Change to new blog hosting

It is troublesome when you start fighting spam for website, application or even this Blog!

There were a couple hundreds of thousands spam comments I deleted last week. Originally I was going to filter every comment and make sure that the useful comments can be posted. However, there were just too many spam comments to read through so I have to manually write a “delete *” sql commend against the MySQL.. (free up more than 4GB in disk space..LOL)

I am thinking to move my blog to wordpress.com where I can just concentrate more on writing instead of maintaining. If you have any ideas/suggestion about good blog host. email me at tien@platformular.com. I am looking to migrate my blog in 2 weeks

As the same time, I have a number of request about my blog articles and hopefully they are coming out at the same time when my new blog’s ready 🙂

Country Drop Down Html Helper for Asp.net MVC

Almost every website or web application need to display countries in the drop down list. If that’s true to your project, the following country drop down html helper for Asp.net MVC may save some time for you.

First, we need all the countries information so that we can put into the select list. Thanks to Mads, we can use the XML countries list. or you can download the countries XML List.

Second, A html helper is created for populating the country data into actual HTML format. Simply put the xml file in the App_Data or any folder that works the best for your application.

Continue reading “Country Drop Down Html Helper for Asp.net MVC”

Hello world!

Welcome to WordPress.com. After you read this, you should delete and write your own post, with a new title above. Or hit Add New on the left (of the admin dashboard) to start a fresh post.

Here are some suggestions for your first post.

  1. You can find new ideas for what to blog about by reading the Daily Post.
  2. Add PressThis to your browser. It creates a new blog post for you about any interesting  page you read on the web.
  3. Make some changes to this page, and then hit preview on the right. You can alway preview any post or edit you before you share it to the world.