Hello, John!
We are a hosting company, and I would hazard a guess that you're inquiring about the Spry framework for AJAX from Adobe.
Here's a link to the
Spry AJAX Framework Documentation - it should be the best place to look for more information (if you are, indeed, seeking assistance with Adobe's product).
... and here's a bit of Javascript code which will swap your dates around:
Code:
<script type="text/javascript">
var internationalDate = 'DDMMYYYY';
var usDate = internationalDate.substring(2,4) + '/' + internationalDate.substring(0,2) + '/' + internationalDate.substring(4,8);
alert(usDate); // Display the result of the script
</script>
Note: If you need to concatenate the date without any
/ characters, use the toString() method to ensure that the date's components are not
added when the
+ operator is used.
Example:
Code:
var internationalDate = '31032008';
var usDate = internationalDate.substring(2,4).toString() + internationalDate.substring(0,2).toString() + internationalDate.substring(4,8).toString();
alert(usDate); // Display the result of the script