09-27-2011, 02:15 PM
Hi,
I used DateField as below, the date format is YYYYMMDD
Users want input the value by keyboard as displaying format, this is impossibe because DateField allows text with only DD/MM/YYYY format
How can other format that we wish be allowed?
I used DateField as below, the date format is YYYYMMDD
Users want input the value by keyboard as displaying format, this is impossibe because DateField allows text with only DD/MM/YYYY format
How can other format that we wish be allowed?
Code:
{DateField
value = {DateTime.date},
format-spec =
{proc {dt:DateTime, df:DateField}:String
{return
{format "%4d%02d%02d",
dt.info.year, dt.info.month, dt.info.day
}
}
}
}