how to String concat?

hi friends, I am trying to concat two strings

 String val2=String(now.day());
 String val3=String(now.minute());
String val4=String.concat(val2,val3);

Here i am not getting an output i must get like this 2618

Where i am making mistake

String val4 = val2 + val3;

?

I am trying to concat two strings

strcat ;)

I am trying to concat two strings

If you are using String functions, then the below page has the String functions/operator links to examples of how they are used.

https://www.arduino.cc/en/Reference/StringObject

Googling "arduino how to String concat" gave some useful results.

Here i am not getting an output

That is because you are not outputting the string in question. If you have extra code, which you didn't show, that outputs the string, perhaps you should have shown it.

How to use this forum

http://snippets-r-us.com/

Thanks to all, i got output using += operator.