[SOLVED] Convert this line from string to int

Hello everyone!

How would i convert this string from a string to an int using C#?

private string currentHour = System.DateTime.Now.ToString("hh");

i have so much to learn :confused:

Thanks guys

Ah figgured it out myself,

private int xc = System.Int32.Parse("123456789");

Thanks for your help! :slight_smile: