I was looking through some pages when I stumbled across this open source JavaScript date library: Datejs. Now I’ve been trying to use it but everytime I try any function like:
$(function() { Date.today().toLongDateString() } );
or even only
Date.today().toLongDateString()
withing tags, I get errors when the webpage loads, it tells me Date.today() is not a function but it appears as such in the documentation I’ve been at this for like almost 2 hours now xD it’s driving me crazy and I know I just probably overlooked something…
I loaded the:
<script type='text/javascript' src='assets/js/dia_hora/date_es-MX.js'></script>
Sounds like the script is not getting loaded. Put an alert(‘hello’); at the beginning of the script and see if you get that popup when the page loads.