title: How to modify a string date to the correct format in Adobe Flex?
body: <p>My Adobe Flex app relies on taking a user's details from Facebook, which will later be stored into my database. My remote server has a default date setting of yyyy-mm-dd, yet the birthday field retrieved from Facebook is the American mm-dd-yyyy as a string. I have decided that it makes sense to use my server's setting, especially as I can use the CURDATE() function. This leaves me in a tricky situation; so how would I go about modifying the string?</p>
  
  <p>I imagined I would have to split the returned value into 3 sub values of day, month and year, then paste them back together in a different order. I have no idea how this would be done in Flex though. Can anybody help?</p>
  
  <p>Thankyou.</p>