📌  相关文章
📜  tolocaledatestring 格式 dd-mm-yyyy - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:50.446000             🧑  作者: Mango

代码示例2
function getDate(dateTimeString)
    {
        var date    = getDateTime(dateTimeString);
        var options = { year: "numeric", month: "numeric", day: "numeric" };        
        return date.toLocaleDateString( date.getTimezoneOffset(), options );
    }