Ultimo día del mes actual
[M:CSP1]ORDDATFIN=eomonth(date$)
Restar 2 meses a la fecha actual
[M:CSP1]ORDDATDEB=gdat$(01,month(addmonth(date$,-2)),year(addmonth(date$,-2)))
func AFNC.TIME_FROM_DT(datetime$) -> It will return a string value with this format: HH:MM:SS