- Home /
[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 :/
Thanks guys
Comment
Best Answer
Answer by FlashX · Nov 30, 2014 at 05:36 AM
Ah figgured it out myself,
private int xc = System.Int32.Parse("123456789");
Thanks for your help! :)
Your answer
Follow this Question
Related Questions
c# convert int to string 2 Answers
Array - Convert Object into Int 5 Answers
Converting a string to an int 2 Answers
GUI.Label shows volume from a slider 3 Answers
Convert Array to String 3 Answers