Patch(
Tableau1;
Defaults(Tableau1);
{
Échéance:Today();
}
);;
It's displayed in excel as : 23/07/2025 22:00:00 (despite being on the 24th so there is a timezone issue but that's not the main problem).
This would be absolutely fine if when retrieving it in power apps (via ThisItem.Échéance) it didn't throw an error :
Valeur attendue « 25569.0005308218 » pour être un format « date-heure » RFC 3339 valide. Format(s) ISO 8601 autorisé(s) : 'YYYY-MM-DDThh:mm:ssZ', 'YYYY-MM-DDThh:mm:ss±hh:mm', 'YYYY-MM-DDThh:mm:ss'.
Translated by ChatGPT : "Expected value '25569.0005308218' to be a valid RFC 3339 'date‑time' format. Allowed ISO 8601 format(s): 'YYYY‑MM‑DDThh:mm:ssZ', 'YYYY‑MM‑DDThh:mm:ss±hh:mm', 'YYYY‑MM‑DDThh:mm:ss'."
So basically dates saved in dd/mm/yyyy in excel works fine, but in dd/mm/yyyy hh:mm:ss break power apps. And for some reason power apps sends the dates in the second format to excel which breaks itself ???
I've tried everything, like sending a serial number (but in excel it turns to 01/01/1970 00:00:46) or trying to convert in power apps afterwards with DateValue and every other existing functions)
I'm pretty sure this is a bug, or at the very least it shouldn't act like that.
Just sending Today() to excel shouldn't break when I just want to display the resulting value in power apps.
Does anyone have some tips with that ?