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();


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

Thursday, March 28, 2013

Is this beta

I am thinking this is an alpha.  Or does it matter?  

i am going to blog about MongoDB. 

Friday, September 28, 2012

Wednesday, September 12, 2012

Motorola Razr Maxx Android Update 2012


There is no date for Android Update.  The press in general states that the update will come by end of the year for phones that's mostly made post 2011.  If the phone doesn't get the update, phone users will get $100 credit toward a new phone.

Reference(s):
http://www.pocket-lint.com/news/46277/jelly-bean-when-update-coming