コミュニティ

Insert date 回答済み

Hi ,

I have a blank field and want to have current date and time in it. Can anyone tell me.

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

2件のコメント

  • Avatar
    Permanently deleted user

    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");

    1
  • Avatar
    Samir Waikar

    Thanks collins. 

    0

サインインしてコメントを残してください。