短めのdatetime整形


var frm=NSDateFormatter()
frm.dateFormat="yyyyMMdd_HHmmss"
println(frm.stringFromDate(NSDate()))