# How to Save date of Sign Up of user specific to a user in Firebase and display it?

**URL:** <https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819>\
**Category:** Questions about Thunkable X\
**Tags:** firebase, help\
**Created:** [December 18, 2022, 6:46am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819 "2022-12-18T06:46:37Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![varunkadapatti](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@varunkadapatti](https://community.thunkable.com/u/varunkadapatti)\
**Post date:** [December 18, 2022, 6:46am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819/1 "2022-12-18T06:46:37Z")

</div>

Hello. I have made a system where users can upload/click their picture and it gets saved to their account in the cloud in Firebase… I followed the Thunkable YouTube tutorial and works like a charm

But now i want to save the date when a user **signs up** to the user’s account but its not working! Sometimes it displays the date but doesnt save it… other times it returns null… pls can someone help me with the logic?  
Thank you,  
Regards.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 18, 2022, 6:49am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819/2 "2022-12-18T06:49:36Z")

</div>

It’s probably an issue with slashes (/) which are used to denote Firebase paths. When I stored date strings in Firebase, I converted them to dashes (-).

If that’s not the problem, post a screenshot of the blocks you’re using.

---

<div class="post-metadata">

**Author:** ![varunkadapatti](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@varunkadapatti](https://community.thunkable.com/u/varunkadapatti)\
**Post date:** [December 18, 2022, 6:52am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819/3 "2022-12-18T06:52:25Z")

</div>

This is the current code… I removed the logic i used to save the sign up date

 ![Screenshot 2022-12-18 122316](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/f/4ff7a3af38f2907ff4f4882bb7e9fcab15b65f8b.jpeg)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 18, 2022, 7:05am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819/4 "2022-12-18T07:05:56Z")

</div>

> [@varunkadapatti](#):
>
> I removed the logic i used to save the sign up date

Why? Isn’t that the part that’s not working? That would be the part we need to see.

Also, what happens if you save a different text string to Firebase such as “this is a test”? Does that work? If so, what happens if you save “12-17-22”? Does that work? If so, what happens if you save “12/17/22”? Does that work? In all three cases, make sure you are hard-coding the text strings.

---

<div class="post-metadata">

**Author:** ![varunkadapatti](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@varunkadapatti](https://community.thunkable.com/u/varunkadapatti)\
**Post date:** [December 18, 2022, 7:22am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819/5 "2022-12-18T07:22:36Z")

</div>

Okay i’ll put the logic back then.

Yes, i tested with text in the cloud variable and it returns null. But if it is numeric value it works properly  
i tested 17/12/2022 and 17-12-2022 and they both work.

Also, i am trying to save the date of signup in one screen and displaying it in another screen, just for clarificiation.  
Thanks

---

<div class="post-metadata">

**Author:** ![varunkadapatti](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@varunkadapatti](https://community.thunkable.com/u/varunkadapatti)\
**Post date:** [December 18, 2022, 7:39am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819/6 "2022-12-18T07:39:10Z")

</div>

My new logic… but it doesn’t work pls can you help me?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/8/d8b2165db96c08d74cf2b342efd04f25f6fc7b0f.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/5/6535da89ca98ad4bfda2fcba549eb8da85e9f6f5.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 18, 2022, 7:49am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819/7 "2022-12-18T07:49:43Z")

</div>

With those newest screenshots, does the saving to Firebase work? Do you see the date in your realtime database?

And does the displaying of that data in `datecreated's Text` work?

---

<div class="post-metadata">

**Author:** ![varunkadapatti](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@varunkadapatti](https://community.thunkable.com/u/varunkadapatti)\
**Post date:** [December 18, 2022, 8:11am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819/8 "2022-12-18T08:11:45Z")

</div>

Unfortunately, i cannot see the date variable in realtime database nor does it display any output…also after adding those new blocks, after i press sign up, it signs me up but doesn’t auto redirect me to login screen.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 18, 2022, 8:38am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819/9 "2022-12-18T08:38:14Z")

</div>

You’re telling me conflicting information in each post so I’m not really sure how to help you at this point.

But if it’s not navigating to the LoginScreen then you have a problem with your cloud variables in the signup function.

---

<div class="post-metadata">

**Author:** ![varunkadapatti](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@varunkadapatti](https://community.thunkable.com/u/varunkadapatti)\
**Post date:** [December 18, 2022, 10:13am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819/10 "2022-12-18T10:13:17Z")

</div>

Yes the cloud variables are the problem only. How do i fix it?  
Please advise.

Thank you,  
Regards.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 19, 2022, 4:58am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819/11 "2022-12-19T04:58:28Z")

</div>

You’re creating an object with a null value for the “date” field. You can’t store null values in Firebase so you need to give it a value such as “” (an empty string).

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/8/d8b2165db96c08d74cf2b342efd04f25f6fc7b0f.png)

---

<div class="post-metadata">

**Author:** ![varunkadapatti](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@varunkadapatti](https://community.thunkable.com/u/varunkadapatti)\
**Post date:** [December 20, 2022, 7:05am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819/12 "2022-12-20T07:05:32Z")

</div>

Ohhh i see. Thank you for your help!!

I had one more question actually…I have stored my assets (pdf files) in OneDrive and have created direct download links so when a user presses download, it opens the webviewer and auto downloads the file which is great… everything works!  
But my question is that can i store these same files in firebase and then download from the database to the device directly (will it be faster and less tedious)? Or if it isn’t possible then its fine… the OneDrive method works

Thank you,  
Regards.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 20, 2022, 7:25am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819/13 "2022-12-20T07:25:46Z")

</div>

You may be able to store PDFs in Firebase storage but I don’t know much about that. I don’t think it would be any faster than OneDrive. Cloudinary is another option for cloud storage of PDFs but OneDrive is probably fine.

---

<div class="post-metadata">

**Author:** ![varunkadapatti](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@varunkadapatti](https://community.thunkable.com/u/varunkadapatti)\
**Post date:** [December 20, 2022, 7:29am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819/14 "2022-12-20T07:29:55Z")

</div>

But how do i download if i’m storing it in firebase/cloudinary? I thought thunkable will have dedicated functions to download but that’s not the case. So i’ll stick with OneDrive cos the download links never expire.

Thank you!!

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 20, 2022, 7:58am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819/15 "2022-12-20T07:58:11Z")

</div>

No, Thunkable doesn’t allow downloading of files. It would have to be on the browser’s device using the Open Link block.

---

<div class="post-metadata">

**Author:** ![varunkadapatti](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@varunkadapatti](https://community.thunkable.com/u/varunkadapatti)\
**Post date:** [December 20, 2022, 8:02am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819/16 "2022-12-20T08:02:54Z")

</div>

Yes. Thank you.

---

<div class="post-metadata">

**Author:** ![varunkadapatti](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@varunkadapatti](https://community.thunkable.com/u/varunkadapatti)\
**Post date:** [December 20, 2022, 8:05am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819/17 "2022-12-20T08:05:45Z")

</div>

Actually i made a screen called download center and everytime a user presses “Download” from some other screen it will redirect user to Download Center, change WebViewer’s URL to the downloadlink and download file. Best part abt this design is that the user never leaves the app!! Also the web viewer is hidden and the user sees some animation for 5 secs and then goes back to main screen!!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [March 20, 2023, 8:06am UTC](https://community.thunkable.com/t/how-to-save-date-of-sign-up-of-user-specific-to-a-user-in-firebase-and-display-it/2183819/18 "2023-03-20T08:06:06Z")

</div>

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