<script type="text/javascript"> $(document).ready(function(){ $('.SmallDisplay').each(function(){ if ($(this).text().match(/(\d+)\/(\d+)\/(\d+)/)){ $(this).html( $(this).html().replace(/(\d+)\/(\d+)\/(\d+)/, '$2\/$1\/$3') ); } }) }) </script>