Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sysdate function

 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need a little javascript function that returns the date of today in the format dd/mm/yyyy
example:
September 2, 2003 ==> 02/09/2003
For control reasons, it cannot be 2/9/2003 or 02/9/2003 or 2/09/2003 but only 02/09/2003
December 14, 2003 ==> 14/12/2003
Any idea on how to implement it ?
Thanks
 
James Swan
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
knock yourself out:

note: change on-click to onclick
[edit] ok my format was mm/dd/yyyy, but I'm sure you can change that.
[ September 03, 2003: Message edited by: James Swan ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic