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

7 REPLIES 7
WarrenBelz
Super User
Super User

@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

PVosEska
Resolver IV
Resolver IV

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. 🙂

harshipujari
New Member

just create a column called as submitted date and in the workflow in that submitted column give utcnow

hope this helps!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,491)