I have a problem to insert dinamic dafault value on form
my form on postgresql.
my form [color="#FF0000"]2 is a field on postgresql.

I have a modify function now to show default value a first day of week.
on form [color=#FF0000]1 this return a blank field.
on form 2 this works.
what to show my dinamic function on form as date format?
My function now
function now()
{
$dia_semana = strftime("%w");
$dia_hj = strftime("%d");
$mes = strftime("%m");
$ano = strftime("%Y");
$primeiro_dia = $dia_hj - $dia_semana;
$dates = "$primeiro_dia/$mes/$ano";
return "$dates";
}