> Le 17 août 2016 à 09:12, Bertrand SOUBEYRAND <soubl...@soub.org> a écrit : > >> Yeah, if you don't specify the return type it comes back as text - usually, >> ie. >> >> C_OBJECT($object) >> C_DATE($date) >> C_TEXT($key;$dateStr) >> >> $key:="current_date" >> >> OB SET($object;$key;Current date(*)) >> $dateStr:=OB Get($object;$key) >> $date:=OB Get($object;$key;Is date) > > > 4D returns a type based on the type of $date
$date can be typed as a date and despite this 4D may throw an error when $key’s value is 2016-08-16T22:00:00.000Z. Is date solves the problem. Bertrand SOUBEYRAND --- La Soub Compagnie 33 bd de la Liberté - 13001 Marseille Bureau : +33 4 84 25 21 99 http://www.soubeyrand-4d-developer.eu <http://www.soubeyrand-4d-developer.eu/> Belgique : +32 87 84 00 88 ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************