我在我的資料庫 '1631363150' 中有這種格式的日期,我想將其更改為 dd-mm-yyyy (DART)
uj5u.com熱心網友回復:
讓我們試試這是否是您的參考時間
void main() {
var date = DateTime.fromMillisecondsSinceEpoch(1631363150 * 1000);
print("get time: ${DateFormat("dd-MM-yyyy").format(date)}");
}
output: get time: 11-09-2021
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/331385.html
