Le code ci-dessous permet de renvoyer la chaîne de caractère "_20211223_135948" pour le document Notes ayant pour date de création "23/12/2021 13:59:48" :
#################################################
_created:=@Created;
_year:=@Text(@Year(_created));
_month:=@Right("00"+@Text(@
_day:=@Right("00"+@Text(@Day(_
_hour:=@Right("00"+@Text(@
_minute:=@Right("00"+@Text(@
_second:=@Right("00"+@Text(@
"_"+_year+_month+_day+"_"+_
#################################################
Exemple :
Format Texte de la formule :
_created:=@Created;_year:=@Text(@Year(_created));_month:=@Right("00"+@Text(@Month(_created));2);_day:=@Right("00"+@Text(@Day(_created));2);_hour:=@Right("00"+@Text(@Hour(_created));2);_minute:=@Right("00"+@Text(@Minute(_created));2);_second:=@Right("00"+@Text(@Second(_created));2); form + "_" + _year + _month + _day + "_" + _hour + _minute + _second
Commentaires
0 commentaire
Cet article n'accepte pas de commentaires.