1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Funcoes de data

Discussão em 'Comandos Básicos' iniciado por bicalho, Maio 14, 2010.

  1. bicalho

    bicalho Sem Pontuação

    function firstday returns date ( input dt as date ):
    return ( if dt = ? then ? else date(month(dt),01,year(dt)) ).
    end function.

    function lastday returns date ( input dt as date ):
    if dt = ? then return ( ? ).
    else do:
    dt = date(month(dt),28,year(dt)).
    return ( dt + 4 - day(dt + 4) ).
    end.
    end function.

Compartilhe esta Página