I love his words.
http://news.cnet.com/8301-17852_3-57580631-71/will-samsungs-next-phone-be-metal-like-the-iphone/
This binds all my previous blog site into a single unit. This includes, technical, economics, music, and other variants.
Monday, April 22, 2013
Wednesday, April 10, 2013
How to convert Oracle DateTime to C# DateTime
string[] strDate = {"2006-03-10 09:28:33", "2010-09-01 12:00:00" };
string pattern = "yyyy-MM-dd hh:mm:ss";
IFormatProvider culture = new System.Globalization.CultureInfo("en-US", true);
DateTime dateVal = DateTime.ParseExact(strDate[0], pattern, culture); dateVal.Dump();
string pattern = "yyyy-MM-dd hh:mm:ss";
IFormatProvider culture = new System.Globalization.CultureInfo("en-US", true);
DateTime dateVal = DateTime.ParseExact(strDate[0], pattern, culture); dateVal.Dump();
3/10/2006 9:28:33 AM
Find out .NET version
Sub Version
Microsoft.Win32.RegistryKey installed_versions = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\NET Framework Setup\NDP");
string[] version_names = installed_versions.GetSubKeyNames();
//version names start with 'v', eg, 'v3.5' which needs to be trimmed off before conversion
double Framework = Convert.ToDouble(version_names[version_names.Length - 1].Remove(0, 1), System.Globalization.CultureInfo.InvariantCulture);
int SP = Convert.ToInt32(installed_versions.OpenSubKey(version_names[version_names.Length - 1]).GetValue("SP", 0));
SP.Dump();
0
Main Version
System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion().Dump();
v4.0.30319
Subscribe to:
Comments (Atom)