0
我正在使用Flash CS3创建基于XML的屏幕保护程序,一切正常。但是,在XML输出文件中,日期输出格式保持未格式化(YYYY-MM-DD T00:00:00+00:00
)。理想情况下,将输出英国日期(DD/MM/YYYY
)格式。动作脚本3 XML日期格式
下面是ActionScript代码的驱动的XML文件
// Load up variables with XML element data
var item_data:Array = new Array();
item_data[0] = xml_item.id;
item_data[1] = xml_item.Product_Name;
item_data[2] = xml_item.Product_Language;
item_data[3] = xml_item.dateCreated;
item_data[4] = xml_item.antDeadlineDate;
item_data[5] = xml_item.comments;
item_data[6] = xml_item.webPdf;
item_data[7] = xml_item.conCheck;
// Set output variable
output = "<b>Job ID</b>:" + item_data[0] + "\n";
output += "<b>Product Name</b>: " + item_data[1] + "\n";
output += "<b>Language</b>: " + item_data[2] + "\n";
output += "<b>Date Created</b>: " + item_data[3] + "\n";
output += "<b>Anticipated Deadline</b>: " + item_data[4] + "\n";
output += "<b>Comments</b>: " + item_data[5] + "\n";
output += "<b>PDFs created</b>: " + item_data[6] + "\n";
output += "<b>Controller Check</b>: " + item_data[7] + "\n\n\n\n";