「セルを読み込み」で、対象のセルの文字列がシリアル値の場合

いつもお世話になっております。

「セルを読み込み」で、対象のセルの文字列がシリアル値のため、
「 “message”: “セルを読み込み: StringConverter cannot convert from System.DateTime.”,」
とエラー表示されます。

令和表示で年月日を取り込みたいのですが、どのようにすればよいでしょうか?

image
右側のセルの値には、変数が入っています。

@kiki1

Variable.tostring


@kiki1

1 Like

Hi @kiki1

When using Read Cell your are storing the output in a variable right. Change the variable type of that variable to System.DateTime DataType.

Input:


Hope it helps!!

2 Likes

こんにちは

一旦Object型の変数で受けて、DateTime.FromOADate でDateTime型に変換してみてください。
例えば以下の様になります。

Thank you for your kindness :relieved:

1 Like

いつもありがとうございます
参考になりました :relieved:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.