View Single Post
  #4 (permalink)  
Old 02-12-2007, 01:04 PM
Ericx Ericx is offline
Loyal Member
 
Posts: 97
Default Update

My previous code did not work so well. It looked like it worked but the month was giving me the minutes. This is how I got around it.
Code:
	
var formatter_date =new AjxDateFormat("yyyy-MM-dd");
var formater_time = new AjxDateFormat("HH:mm:SS");
var pretty_date = formatter_date.format(new Date(obj.date));
var pretty_time = formater_time.format(new Date(obj.date));
this.email_dtime = pretty_date + " " + pretty_time;
I'll try to post it on the wiki soon.
__________________
EricX
Reply With Quote