Insert date 回答済み Written by Samir Waikar 2018年08月08日 12:12 2 Hi , I have a blank field and want to have current date and time in it. Can anyone tell me. この記事は役に立ちましたか? 0人中0人がこの記事が役に立ったと言っています はい いいえ
コメント
2件のコメント
Hi Samir,
Set the field datatype to Date. Then add a C# script rule to getdate and assign it to the field. See script below.
using System;
DateTime thisDay = DateTime.Today;
Context.Field("Field").Text = thisDay.ToString("d");
Thanks collins.
サインインしてコメントを残してください。