cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bbsin
Post Prodigy
Post Prodigy

how to catpure the date submit date and time into SP list?

Hi Can I know how to capture the date and time when the user submit the form?

 

SP list column date submit

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
RusselThomas
Microsoft
Microsoft

Hi @bbsin ,

One of the things I love about using SharePoint is that it already captures this information for you in the following built-in columns;

  • Created (datetime - when an item is first created)
  • Created By (person)
  • Modified (datetime - when an item was last edited)
  • Modified By (person)

There are other super handy columns as well, but this should do for you.

They are hidden on SPO by default, but they will be there - so if you can't see them in your SharePoint list, click on an existing column header and select 'show/hide columns' then select the relevant columns from the list that pops up.

 

If you absolutely have to create and store your own timestamp, you can add a date/time column and set it to include Time, then in your app add the field to the form and hide it so the user can't see it.

You can then set it's card Update: property field in the corresponding Form to 

Now()

 Hope this helps,

RT

View solution in original post

6 REPLIES 6
WarrenBelz
Super User III
Super User III

@bbsin ,

The Now() function returns the current Date and time, so you could have a card on your form with this as the Default.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

bbsin
Post Prodigy
Post Prodigy

Thanks  for your help

RusselThomas
Microsoft
Microsoft

Hi @bbsin ,

One of the things I love about using SharePoint is that it already captures this information for you in the following built-in columns;

  • Created (datetime - when an item is first created)
  • Created By (person)
  • Modified (datetime - when an item was last edited)
  • Modified By (person)

There are other super handy columns as well, but this should do for you.

They are hidden on SPO by default, but they will be there - so if you can't see them in your SharePoint list, click on an existing column header and select 'show/hide columns' then select the relevant columns from the list that pops up.

 

If you absolutely have to create and store your own timestamp, you can add a date/time column and set it to include Time, then in your app add the field to the form and hide it so the user can't see it.

You can then set it's card Update: property field in the corresponding Form to 

Now()

 Hope this helps,

RT

View solution in original post

PVosEska
Resolver III
Resolver III

Hi @bbsin ,

 

You can grab properties from the forms last submit by using the <formName>.LastSubmit.<FieldYouNeed>

 

You could patch this into another list if that was what you needed:

 

 

Patch(
   SecondList,
   Defaults(SecondList),
   {
        'date submit':<your form>.LastSubmit.Created
   }
)

 

where;

- the secondList is the name of the list you want to patch it to,

- Defaults(SecondList) creates a new item in that list,

- 'date submit' is the field you want to insert,

- <your form>.LastSubmit.Created is the Created date of the last submitted form. 

 

 

Let me know if you need more help!

Regards,

 

Thanks PVosEska

Thanks RuseelThomas settled. 🙂

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (65,302)