Get Month Name

calendar.jpg

In Sql Server to find the month from a date you use the following command:

Month(DateTime)

This will give you the month number. To get the month name, you need to use the next command:

DateName(month, DateTime)

Happy Programming.

Advertisements

Multiple Sitemaps

Globalization

A problem that i found lately was when i needed to have multiple sitemaps. Why? I needed different menus for different parts of the website. Normally, the sitemap must be found at the root of the website. After searching, I found this solution which is very easy to implement… Next are the steps:

1. In web.config, you can add multiple site map providers, and set the siteMapFile property. Continue reading