On Nov 9, 2009, at 3:40 PM, Miguel Lopes wrote:

> I'm trying to have dates represented as YYYY/MM/DD, DD/MM/YYYY or DD/ 
> MM/YY.
> Any of these would be ok as people on this side of the pond expect the
> month to be the middle value.
>
> The db field is of date type. I've tried to use both dTextBox and
> dDateTextBox without success. The date is represented in the format
> MM/DD/YY.
>
> I've dabbled a bit but it dosen't seem to be an obvious solution for  
> this.
> Is there a way to accomplish this?


        This is a module-level setting. To change it, create a file named  
'settings_override.py' in your app's home directory, and add the line:

dateFormat = "%Y/%m/%d"

... to get dates to display as "2009/11/09" in dDateTextBox. Try  
playing around with this setting until you get the display format you  
want.


-- Ed Leafe



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to