String to Int ?!?!?!?!

Hi

(making a function to push out current time using http to setTime, i know there is ntp but I want this :slight_smile: )

But I can't get the String to be converted to Int!
I read and I tried many things but I can't get it to work. (usign arduino 0022)

Let say I have a String named NyTID with the number 22
How can I make it an Integer ?

Please provide working code. Iam going crazy here :stuck_out_tongue:

//Thanks..!

Let say I have a String named NyTID with the number 22
How can I make it an Integer ?

You're going to kick yourself for not looking at the String code.

int val = NyTID.toInt();

..Dho..... Thanks alot, works like a charm!