[英]How to set localized short-date format for a cell in Excel with C#?
[英]How to set a cell in Excel to a particular date format using C#?
您可能必須在范圍上使用NumberFormat顯式設置格式。
range.NumberFormat = "DD/MM/YYYY";
嘗試這個:
=TEXT("7-20-2019", "DD/MM/YYYY")
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.