Date Variable
August 7, 2006 12:00 AM
Hi Keith.You're correct. I just wanted to take out the day of the week string. That's ok coz someone from trivantis helped me and I'd like to share it with you:I edited the trivantis-timedate.js and change the FormatDS function to be: function FormatDS( now ) { var year = now.getYear() if( year < 1900 ) year += 1900 var month = now.getMonth() + 1; var strDate = ''; if( month < 10 ) strDate += '0'; strDate += month+ '/'; var day = now.getDate(); if( day < 10 ) strDate += '0'; strDate += day + '/' + year; return strDate } I will keep your code, I'm sure it will come in handy.Thanks.
Discussions have been disabled for this post