Try this:

Field('myfield','date',requires=IS_DATE(format='%Y/
%m'),widget=SQLHTML.wisgets.string.widget)

On May 30, 7:24 am, Gerd <gerd.niem...@gmail.com> wrote:
> Hi!
>
> First i'd like to thank Massimo and all other developers/contributors for
> the great framework, keep up the good work!
>
> Now to my question: How can I create a field that allows input only in the
> format "YYYY/MM". And how should i store the value as date (i thought maybe
> in the format "YYYY/MM/01", or is there a better way)?. How can i achive
> that?
>
> Thanks in advance
> Gerd

Reply via email to