Automatic Date Capture

How to get the automatic date on phone and save it in tinydb without always choosing date by date picker

Using clock component, for example when screen initilaize

2 Likes

Use the clock component to get current device Time As an Instant. Store it in a TinyDB. And to set it in a DatePicker connect it with Clock.SetDateToDisplayFromInstant

1 Like

Ok , let me check it out

Ok I will check it out

I would prefer to save the Date as Instant so you can change the Format as you need it.

2 Likes

It was simply an example :slight_smile:

2 Likes

It works, Thankyou

2 Likes

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