Thursday, 13 September 2012

Handling Date and Time in Flex

Handling Date and Time in Flex


Pattern Example
Year      
YY              09 (Year Number Short)
YYY           2009 (Year Number Full)
YYYY        02009 (I have no clue why you would need this)
Month 
M                7 (Month Number Short)
MM            07 (Month Number Full)
MMM         Jul (Month Name Short)
MMMM     July (Month Name Full)
Day       
D               4 (Day Number Short)
DD            04 (Day Number Full)
Day Name          
E               1 (Day Number Short)
EE            01 (Day Number Full)
EEE          Mon (Day Name Short)
EEEE        Monday (Day Name Full)
A              AM/PM
J               Hour in day (0-23)
H              Hour in day (1-24)
K              Hour in AM/PM (0-11)
L               Hour in AM/PM(1-12)
N             3 (Minutes)
NN          03 (Minutes)
SS           30 (Seconds)


Sample date format : 
MXML:
<fx:Declarations>
<mx:DateFormatter id="dateFormatter" formatString="MM/DD/YYYY"/>
<mx:DateFormatter id="dateFormatterForDateAndTime" formatString="MM/DD/YYYY L:NN A"/>
</fx:Declarations>


Date time Component:




Thanks for Visiting............

Wednesday, 12 September 2012

Icon in addressbar (Favicon in flex)


Favicon(Icon in addressbar) in flex
Hi friends,
After too much googling finally I found the way how to display the favicon i.e icon display in the website in the left hand side of address bar.
You have to just put the two lines in the html page.

---------------------------------------------------------------------
"< link rel="icon" href="favicon.ico" type="image/ico">"
---------------------------------------------------------------------

place this line inside the head tag of your applicationName.html

You can find the html file in
YourApplicationFolder/bin-debug/yourApplicationName.html


HREF= address of your icon

Just compile and run your project.
You will find the icon in address bar.


FYI - To convert .jpg, gif ..etc to .ico  use below web site.
http://www.coolutils.com/online/image-converter/

Thanks for visiting...........................