DateTime dtNow = DateTime.Now; int hour = dtNow.Hour;
String str="9/29/2011 5:41:55 PM"; String[] gh=str.Split(' '); string hrs=gh[1].Split(':')[0];
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)