Date format depending on browser

I’m using the calendar control within a grid and to format it I use a string, e.g. “%m/%d/%Y”. Trouble is I will have people from different countries accessing the site so I would like to have the date in their format so “%d/%m/%Y” for British visitors, “%m/%d/%Y” for US visitors, etc.

Is there a setting for this?

You may try to use the extended form of setDateFormat() method.

For example:
mygrid.setDateFormat(mask0,mask1)
mygrid.setDateFormat("%Y/%m/%d","%d/%m/%Y")

mask0 ("%Y/%m/%d") - the format of date which will be displayed in the grid
mask1 ("%d/%m/%Y") - the format of date which is used in your XML