It would be 100% better to use SQL or your server-side language to handle date stamps. There are a million and one reasons for this. I'll name a few. Javascript can be disabled. Javascript is browser-dependant. The date functions in Javascript are extremely quirky. You have total control over the data on the server-side. The list goes on.