Backing sheet do Draft para o Isodraft

 
Parents
  • Since the target format is DD/MM/YYYY (not D/M/YYYY) I would suggest the following modified code.


    !data = object DATETIME()


    !dia = !data.date().string()
    if ( !dia.length().eq(1) ) then
       !dia = |0| & !dia
    endif


    !mes = !data.month().string()
    if ( !mes.length().eq(1) ) then
       !mes = |0| & !mes
    endif


    !ano = !data.year().string()


    !dataiso = !dia & '/' & !mes & '/' & !ano
Reply
  • Since the target format is DD/MM/YYYY (not D/M/YYYY) I would suggest the following modified code.


    !data = object DATETIME()


    !dia = !data.date().string()
    if ( !dia.length().eq(1) ) then
       !dia = |0| & !dia
    endif


    !mes = !data.month().string()
    if ( !mes.length().eq(1) ) then
       !mes = |0| & !mes
    endif


    !ano = !data.year().string()


    !dataiso = !dia & '/' & !mes & '/' & !ano
Children
No Data