Help? Google Script change Date

Maybe problem is caused by spreadsheet’s Locale settings