I tried to put that in the final part of my code (where I chose the data to send in the sms) but I receive "AT+CCLK" in my phone, not the hour.
What code?
Clearly, what you send to the phone to talk to it, is going to be different from what you send to the phone as a text message.