flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Mclean <jus...@classsoftware.com>
Subject Re: British date doesn't look like the French one
Date Mon, 06 Nov 2017 22:45:18 GMT
Hi,

> When I use french locale I get date like this:
> dd/mm/tyyyy, but for British (en_GB) I still get mm/dd/yyyy?

What version of the Flex SDK are you using? en_GB is a supported locate and you should get
dd/mm/yyyy

For example this code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
			   xmlns:s="library://ns.adobe.com/flex/spark" 
			   xmlns:mx="library://ns.adobe.com/flex/mx"
			   minWidth="955" minHeight="600">
	<mx:DateField id="mydate" selectedDate="{new Date(2016, 6, 4, 13)}"/>
</s:Application>

Will correctly display 4th July as "04/07/2016” when compiled with -locale en_GB.

Thanks,
Justin
Mime
View raw message