valerio83:
I would like to know if I can use the function delay() with values of 43200000 = 12 hours.
Yes.
is there the possibility to lost syncronization after many days?
Yes. You don't say which board you're using, but for example, an Uno uses a ceramic resonator for the system clock which is typically only accurate to ±0.5%.
If that's not good enough, I'd look into a real-time clock (RTC). Inexpensive ones are typically ±20ppm, then there are those based on temperature-compensated crystal oscillators that are as accurate as ±2ppm. The Chronodot is a popular example of the latter.