Reading time: < 1 minute
The first Flex 4 book (Hello! Flex 4) has just been released this month in the UK. I haven’t read it yet, so no way I could give any reviews on it, but from the interwebs, I can see it’s contents are really good. A must buy for the festive period.
Reading time: 1 – 2 minutes
I’ve been following the recent news about CrunchPad, and for all of our disappointment, it’s been discontinued due to a “misunderstanding” between the guys from TechCrunch and Fusion Garage, who were developing this together.
Now, today it’s been announced that the CrunchPad has been reborn (as Joo Joo), and will indeed be released by the guys over at Fusion Garage. Apparently the whole deal was because Fusion Garage decided to ditch Techcrunch, and release it alone.
I strongly disagree with this kind of behaviour, and really hope the guys over TechCrunch find a way to stop it.
It’s due to go on sale on the 11th of December, with a price tag of $499. You can read more about it on Engadget’s website.
Reading time: 2 – 3 minutes
I’ve been working with some Adobe Flex recently, and was having some trouble formatting dates. For those who don’t know, here (in th UK) we use the format “dd/mm/yyyy” (Day/Month/Year) as opposed to people over in the States using “mm/dd/yyyy” (Month/Day/Year).
I had to use the DateField component, and couldn’t find a way in heaven to get the date it returns formatted as “dd/mm/yyyy”.
I consider myself a flex beginner, and haven’t really done much with it (I know, shame on me), and usually have research for online resources (A.K.A “Google Desperation”).
Surprisingly, it’s not very easy to find good online resources for Flex, and when searching for it, I was mostly presented with dodgy date strings being split up and used as arrays.
Damn it! Isn’t there anything like Coldfusion’s DateFormat?
I then had to resource to twitter, and quickly got the answer as if in a water stream!
Basically what you have to to, is use mx:DateFormatter, and create your mask as such:
<mx:DateFormatter id="formatDate" formatString="DD/MM/YYYY" />
You can now use this formatter in order to format any date you might have as a string:
public var myDate:Date = new Date;
And this will format your date as “dd/mm/yyyy”. I hope this is useful to somebody else some other time.