Pages

Monday, December 16, 2013

The Real Pakistan

New post has been published on The Real Pakistan
Enjoy the stunning and amazing beauty of The Real Pakistan.

Below are around 40+ beautiful valleys in Pakistan and there are a lot more than this.

Soon Valley

1.Soon Valley Soon Valley is one of the famous valleys of Pakistan situated in the central Punjab province. Being as a tribe of Arabs origin, the local people follows Islamic culture and traditions. There are two well-renowned Uchhali Lake and Khabikki Lake lakes in Soon valley.

The Shigar Valley

2.Shigar Valley

The Shigar Valley is a valley in Baltistan in northern Pakistan that is watered by the Shigar River. The valley stretches about 170 km from Skardu to Askole and is the gateway to the high mountains of the Karakoram. Even though the Shigar Valley is a remote and largely inaccessible place, there are several villages in the valley. Askole is the last settlement in the Shigar Valley, which is still far from the high mountains.
Shimshal Valley

3.Shimshal Valley

Shimshal is a village located in Gojal, Hunza–Nagar District, in the Pakistan-administered Gilgit–Baltistan formerly known as Northern Areas of Pakistan. It lies at an altitude of 3,100 m above sea level, and is the highest settlement in Hunza Valley of Pakistan. It is the bordering village that connects Gilgit-Baltistan province of Pakistan with China. The total area of Shimshal is 3,800 km2 and there are around two thousand inhabitants with a total of two hundred and forty households.

Shinkari Valley

4.Shinkari Valley

Shinkari valley is situated in Kohistan, Khyber Pakhtunkhwa of the Indus Valley in the Hindu Kush mountains of Afghanistan and Pakistan.

Siran Valley

5.Siran Valley

Siran Valley, is a little known valley, lying in Mansehra District, Khyber-Pakhtunkhwa, Pakistan. The Valley gets it name from the River Siran

which flows through it.

Skardu Valley 

6.Skardu Valley

The Skardu Valley is located in the Northern Areas of Pakistan. The valley is about 10km wide and 40km long. It is at the confluece of the River Shigar and River Indus. It surrounded by the large Karakoram Range. With the nearby lakes and mountains, it is an important tourist location in Pakistan.

Swat Valley 

7.Swat Valley

Swat is a valley and an administrative district in the Khyber Pakhtunkhwa near the Afghanistan-Pakistan border. With high mountains, green meadows, and clear lakes, it is a place of great natural beauty and is popular with tourists as “the Switzerland of the region.” Swat has been inhabited for over two thousand years

Tirah Valley 

8.Tirah Valley

The Tirah Valley is located in Kurram and Khyber agencies of the Federally Administered Tribal Areas of Pakistan.

Urak Valley

9.Urak valley

Urak is a valley surrounded by mountains in the province of Balochistan in Pakistan. This valley is used for growing apple trees of good

quality and few other fruits. It has a small waterfall in the end from where the Walli Tangi (Wali Tangi) valley begins.



Neelum Valley

10.Neelum valley

Peace in arms of nature, un-expressible beauty of Taobut in Neelum valley, Pakistan.

Phandar Valley

11.Phandar Valley

Nature at its Best ! Phandar Valley, Gilgit-Baltistan, Pakistan

Allai Valley

12.Allai Valley

Allai is an administrative subdivision of Batagram District in the Khyber-Pakhtunkhwa province of Pakistan – that also contains the Allai Valley. The average breadth of the Allai Valley is about fifteen miles (24 km), and the total area 200 square miles.

Bagrot Valley 

13.Bagrot Valley

Bagrot Valley is a valley in the Karakoram Mountain range in Gilgit–Baltistan, Pakistan. The valley is known for its fruits and vegetables. Tourist visit this valley mostly in summer. The means of economy is agriculture. However with the recent construction of the Karakorum Highway, the area has been exposed to western civilization, with small cinemas, retail outlets for mountain equipment and apparel, and small hotels opening to facilitate visitors.

Bandala Valley

14.Bandala Valley

Bandala is a valley in Azad Kashmir located about 26 kilometres from Bhimber in Pakistan. The high literacy rate has improved the overall living standards of the people. Because most of the people work for the government or overseas, especially in Middle East and Europe. Many birds and animals are found in the valley including peacocks, partridges, quail, birds of paradise, falcons and eagles.

Broghil Valley 

15. Baroghil Valley

Broghil Valley is a valley and national park located in Gilgit District, Khyber Pakhtunkhwa, Pakistan. It is located close to the Afghan- Pakistan border. The valley has more than 35 lakes. By virtue of its strategic location having both internal and international borders, Broghil is an important valley in the region. Baroghil Valley is homeland of many animals and birds.

Battagram Valley 

16.Battagram Valley

Battagram Valley is a valley in Battagram District, which is located in Khyber Pakhtunkhwa, formerly known as North-West Frontier Province, northern Pakistan.

Chiporsun Valley 

17.Chiporsun Valley

Chiporsun (Chapursan) is a valley containing some eight villages in Gojal, the Northern Areas of Pakistan. It is the most Northwestern part of Pakistan, bordering Afghanistan and China.

Chitral Valley

18.Chitral Valley

Chitral Valley, Khyber Pakhtunkhwa, Pakistan. Chitral was a Hindu country before the extension of Islam, and traces of Buddhism are also found. A number of sport festivals and tournaments are held throughout the year, including the Shandur polo tournament held at the highest polo ground in the world.

Chorbat Valley 

19.Chorbat Valley

Chorbat Valley is a valley in Khaplu tehsil, Ghangche District, in the Northern Areas, Pakistan. The valley is surrounded by high rising peaks of the Karakoram mountain range and the bank the Shyok River. The climate is hard with little rain and extremely cold winters due to proximity to Siachen Glacier and other peaks and glaciers.



Naltar Valley

20.Naltar Valley

Naltar is a valley near Gilgit and Hunza in the Gilgit–Baltistan region of Pakistan. Naltar is a forested (pine) village known for its wildlife and magnificent mountain scenery.

Hispar Valley 

21.Hispar Valley

The Hispar Valley is the last Valley of Nagar Valley it is about 28km away from Nagar Khas it is the last valley of Biafo Glacier Skardu trek from Hispar and first From Skardu.

Hunza Valley 

22.Hunza Valley

The Hunza Valley is a mountainous valley in the Gilgit–Baltistan region of Pakistan. Hunza was formerly a princely state bordering China to the north-east and Pamir to its north-west, which survived until 1974, when it was finally dissolved. Hunza was an independent principality for more than 900 years. Several high peaks rise above 6,000 metres (20,000 ft) the Hunza valley. The valley provides spectacular views of some of the most beautiful and magnificent mountains of the world.

Ishkoman Valley 

23.Ishkoman Valley

The Ishkoman valley lies in the north of Pakistan, bordering Afghanistan and the Pamir corridor. It remained under the rule of the Katoor Dynasty until 1895. From 1947 until 1972, the area was subject to the Frontier Crimes Regulations. With the conclusion of the Indo-Pakistani War of 1971, Ishkoman came fully under the influence of Pakistan.

Jehlum Valley

24.Jhelum Valley

Jhelum Valley is a valley in Hattian Bala District of Azad Kashmir, Pakistan. It is 50 kilometers long valley located along with Jhelum river surrounded by lush green mountains. Hattian Bala is the main town and district headquarter in valley.

Kaghan Valley 

25.Kaghan Valley

The Kaghan Valley is a valley in the north-east of Mansehra District of the Khyber Pakhtunkhwa Province of Pakistan. It attracts many tourists from around the world. There are more than a dozen big and small lakes in the valley, but three are more popular among the tourists: Saiful Muluk Lake, Dudipatsar Lake and Lulusar Lake. Fishing is the chief sport in Kaghan

Kalash Valleys

26.Kalash Valleys

Kalash Valleys, Chitral, Khyber-Pakhtunkhwa, Pakistan. Located in Khyber-Pakhtunkhwa, the Kalash people live in three isolated mountain valleys: Bumburet (Kalash: Mumuret), Rumbur (Rukmu), and Birir (Biriu). These valleys are opening towards the Kunar River, some 20 km south (downstream) of Chitral.



Kharkoo Valley 

27.Kharkoo Valley

Kharkoo valley is located in Ghanche District, Gilgit-Baltistan. Pakistan. There are 10 villages in Kharkoo. The Kharkoo Polo Ground is the old and historical polo ground in this region.



Khot Valley 

28.Khot Valley

Khot Valley is a town and one of the beautiful valleys of Chitral District (a subdivision) of Chitral District in the Khyber-Pakhtunkhwa province of Pakistan.

Kunar Valley 

29.Kunar Valley

Kunar Valley is a valley in Pakistan. There are limited and small forested areas in some side valleys but the more than 95% of the valley has been deforested. In limited areas at higher elevations there are sustained grassy mountain meadows. Overwhelmingly though the Kunar Valley is an arid, rocky, steep landscape with a fast-moving muddy river as its primary geographic feature.

Kurram Valley

30.Kurrum Valley

Kurram Tribal Agency is located in the Federally Administered Tribal Areas (FATA) of Pakistan. Geographically, it covers the Kurram Valley region which is a beautiful valley in the northwestern part of Pakistan, neighboring Afghanistan. The Kurram Valley in ancient times offered the most direct route to Kabul and Gardez. In recent years the Kurram Valley has assumed a strategic position and has been the site of intense Taliban activities.

Leepa Valley 

31.Leepa Valley

Leepa Valley is in Azad Kashmir, which is the Pakistani-administered part of the former princely state of Jammu and Kashmir now in Pakistan. Leepa Valley is considered scenic by tourists. It has high mountains covered with pine trees. In the entire winter season the leepa valley is covered with snow. From May to November, people from all over the pakistan come to visit.



Nagar Valley 

33.Nagar Valley

The Nagar Valley is located in the Gilgit Baltistan, Pakistan. Nagar was formerly a princely state which had existed for 1200 years. The state was dissolved in 1974. Nagar is bordered by the Gilgit Agency to the southwest, China to the north and northeast and Afghanistan to the northwest. The whole area of Nagar was declared as a community park to prevent the hunting of endangered animals.

Naltar Valley

32. Naltar Valley

Naltar is a valley near Gilgit and Hunza in the Gilgit–Baltistan region of Pakistan. Naltar is a forested (pine) village known for its wildlife and magnificent mountain scenery.



Naran Valley

34.Naran Valley

Naran Valley, Mansehra District, Khyber-Pakhtunkhwa, Pakistan. Naran is one of the most scenic valleys in Pakistan; attracting thousands of tourists, trekkers, photographers and nature-enthusiast, every year. Naran can be considered as base station to scenic destinations like Lake Saif-ul-Malook, Lalazar Babusar, Noori Valley and Purbi Valley.

Palas Valley

35.Palas Valley

Palas is a valley in Kohistan District, North-West Frontier Province, Pakistan. Among the birds found here are Western Tragopans and Himalayan Monals. Several surveys on other wildlife have been compiled by different experts.

Panjkora Valley 

36.Panjkora Valley

Panjkora Valley is located in northern Pakistan. The Panjkora Valley contains important sites of the Gandhara grave culture. On the west side of the Panjkora River is the excavated site of Balambat. The site has been occupied continuously since the time of the Aryans in 1500 BC. Houses dating from 500 BC have been discovered here. Fire altars were also discovered, evidence of fire worshippers.

Pathika Valley

37.Pathika Valley

Pathika or Patikka is a beautiful place, some 19 miles (31 km) from Muzaffarabad city in Pakistan. The quality of life here is full of motions despite its simplicity. It is perhaps due to verdure. Financially, it is an affluent town. The majority of the village folk are engaged in

profitable business abroad especially in middle east countries.

Rumbur Valley

38.Rumbur Valley

Rumbur is one of the three Kalasha valleys situated in Chitral District, Khyber Pakhtunkhwa, Pakistan.

Astore Valley 

39. Astore Valley, Gilgit-Baltistan, Pakistan

Astore Valley is located in Astore District in the territory of Gilgit-Baltistan, Pakistan. The valley is at an elevation of 2,600 meters (8,500 feet), adjacent to the eastern side of mountain Nanga Parbat. The valley has more than 100 villages. Due to its various landscape and weather conditions the valley provides outstanding habitat for a variety of commercially important medicinal plants.



Hopar Valley 

40.Hopar Valley

Hopar Valley is a scenic portion of the Nagar Valley in northern Pakistan. Hopar Valley is the site of the Spantik and Hopar (Hopper) glaciers. Whole population of this valley is Burushaski speakers. Burushaski has always been a mystry for linguists. This valley is full of natural resources and natural beauty.

Konsh Valley 

41.Konsh Valley

Konsh Valley is located on extreme Northern border of the Mansehra district of Khyber-Pakhtunkhwa province of Pakistan. The town of Battal is considered to be the headquarter of the valley. The Silk Route, also known as the Karakoram highway, passes through it leading to Gilgit.

Shangrila Resort

42.shangrila_ resort

Shangrila Resort Skardu, also known as “Heaven on Earth” which is located in the Northern Areas of Pakistan. It is situated among the highest mountains, it is around the famous heart shaped Kachura Lake and beautiful gardens. The area is famous for other attraction such as K-2( 8611.M ) 2nd highest peak in world. The daily flight of Boeing 737 from Islamabad it take just 45 minutes. By road you can reach here from Karakoram Highway.

Wednesday, December 11, 2013

Date format conversion

New post has been published on Date format conversion

If you are tired of Date format conversion error because you have to take care of user locale settings and based on that you have to pasre the

date to desired format using DateTime.Parse or Convert.ToDateTime methods. Still you can get error of “input string was not in correct format”

so there is a way around to this problem. Below is the method which takes the source date, source format and returns you the destination format

as specified in the parameters.


Have a look at that:


public static string GetFormattedDate(String SourceDate, string SourceDateFormat, string ReturnFormat)

string[] Params = new string[3];
string sDate = "";
string sMonth = "";
string sYear = "";
string DateSeparator = "/";

if (SourceDate.Length > 1)

if (SourceDate.Length > 9)

SourceDate = SourceDate.Substring(0, 10);

else if (SourceDate.Length == 9)

SourceDate = SourceDate.Substring(0, 9);


SourceDate = SourceDate.Replace("-", "/");

Params = SourceDate.ToString().Split(DateSeparator.ToCharArray());

if (SourceDateFormat == "dd/mm/yyyy")


if (Params[0].Length == 1)
sDate = "0" + Params[0].ToString();
else
sDate = Params[0];

if (Params[1].Length == 1)
sMonth = "0" + Params[1].ToString();
else
sMonth = Params[1];

if (Params[2].Length == 1)
sYear = "0" + Params[2].ToString();
else
sYear = Params[2].Substring(0, 4);


else if (SourceDateFormat == "mm/dd/yyyy")

if (Params[1].Length == 1)
sDate = "0" + Params[1].ToString();
else
sDate = Params[1];

if (Params[0].Length == 1)
sMonth = "0" + Params[0].ToString();
else
sMonth = Params[0];

if (Params[2].Length == 1)
sYear = "0" + Params[2].ToString();
else
sYear = Params[2].Substring(0, 4);


switch (ReturnFormat)

case "dd/mm/yyyy":
return sDate + DateSeparator + sMonth + DateSeparator + sYear;

case "mm/dd/yyyy":
return sMonth + DateSeparator + sDate + DateSeparator + sYear;

default:
return "";


else

return "";


Basically what it does is, it splits the date and manually formats the date accodring to the desired format.


So you can try it like this:


DateTime dtJoinDate = Convert.ToDateTime(GetFormattedDate(txtJoinDate.Text, "dd/mm/yyyy", "mm/dd/yyyy"));

Enjoy…


 

Sunday, December 1, 2013