insert number of days of year, months, days of month

Posted by ml on Stack Overflow See other posts from Stack Overflow or by ml
Published on 2010-05-26T22:38:39Z Indexed on 2010/05/26 22:51 UTC
Read the original article Hit count: 237

Filed under:

How can I insert in a database the number of days of the year and at the same time insert in the same record the month, day of the month, and the day of the week? This is my table:

tabela/coluna.Dias_ano(registo 1...365)

Year:=StrToInt(ano.Text);
diasano.Text:= IntToStr( DaysInAYear(Year) );
diasAno| Mes |diames |dia semana |
1 | janeiro | 1 |Segunda |
2 | janeiro | 2 | Terça |
...
365 | Dezembro | 31 | Segunda 

© Stack Overflow or respective owner

Related posts about delphi