Hi Steven,
How are you doing today? I hope everything is fine.
We do have the time data type (in addition to numbers) so this is certainly possible. But depending on what you are trying to do, sometimes it’s easier to store all your data as number (using your smallest unit, such as seconds) and then use a bit of custom code to change the data formatting to hh:mm:ss, for example.
This is particularly useful if you need to use them in statistics.
Regarding user registration, we use the default WP registration form, so users can register and a player profile is created for them. But you still need an admin (or league manager) to add them to teams or events.
Thanks!
Kind Regards,
-Roch
Hi
Thanks for reply
We do have the time data type (in addition to numbers) so this is certainly possible. But depending on what you are trying to do, sometimes it’s easier to store all your data as number (using your smallest unit, such as seconds) and then use a bit of custom code to change the data formatting to hh:mm:ss, for example.
Do you have an example or document on this, it might help me and give a big picture on it
Steven
Hi Steven!
I don’t think we have an article on this topic in particular, as that’s part of the setup (so there are many places to look for these timed elements).
Here’s an example, for player performance you have these options:
https://prnt.sc/110v7jj
In general, the decision between a number/time field is based on what kind of calculations you’ll do with it.
Thanks!