0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【UiPath】日付型の値をExcelに出力する際の注意点

Posted at

UiPath(VB.NET)とExcelでは日付として扱える範囲が違うため、これに起因するエラーが発生することがある。

VB.NETにおける日付の最小値は「0001年1月1日」であるが、Excelでは「1900年1月1日」が最小値であり、これより下の値は日付としては扱えない。

image.png
image.png

この違いにより、1900年以前の日付を扱う場合、上記のようにUiPath上で日付型のチェックをかけてもエラーにはならないが、日付型のままいざExcelに出力しようとするとそこでエラーになる。過去の日付を扱う際には覚えておきたいポイントである。

動作環境

UiPath.System.Activities v25.6.1

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?