Hi, Try this: <?xml version="1.0" encoding="utf-8"?> <mx: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" layout="vertical" initialize="init(event)"> <fx:Script> <![CDATA[ import mx.events.FlexEvent; import mx.resources.IResourceManager; import mx.resources.ResourceManager; [Bindable] public var dateFormat:String; [Bindable] public var locale:String; protected function init(event:FlexEvent):void { var rm:IResourceManager = ResourceManager.getInstance(); locale = rm.localeChain.toString(); dateFormat = rm.getString("SharedResources", "dateFormat"); } ]]> </fx:Script> <mx:DateField id="mydate" selectedDate="{new Date(2016, 6, 4, 13)}"/> <mx:Label text="{locale}" /> <mx:Label text="{dateFormat}" /> </mx:Application>
It should display “en_GB” and “DD/MM/YYYY” if you can compiled with the en_GB locale. Thanks, Justin