• This is a reminder of 3 IMPORTANT RULES:

    1- External self-promotion websites or apps are NOT allowed here, like Discord/Twitter/Patreon/etc.

    2- Do NOT post in other languages. English-only.

    3- Crack/Warez/Piracy talk is NOT allowed.

    Breaking any of the above rules will result in your messages being deleted and you will be banned upon repetition.

    Please, stop by this thread SoccerGaming Forum Rules And Guidelines and make sure you read and understand our policies.

    Thank you!

Birthdate

mj585

Club Supporter
Hi ... sorry if this has been answered before.

I'm looking for a way to convert the birthdate used in the fifa database to a "proper" format.


I was looking around and saw that fifa ecp had something like that? ... can't find it anymore ... but that said, it's not exactly what im looking for.


What I'm actually looking for is what the value used in the database mean ... is it number of days?

I'm working on a bigger program (not really FIFA-related) and having that script online (like the one ive seen) wouldn't work, but rather knowing what it exaclty mean and a function to convert it into proper format will actually be very useful.

Thanks for your help, in advance.
 

mj585

Club Supporter
thank you

so it seems like its the number of days (because when im increasing by one day, the FIFA format increases by one) --and 15/10/1582 is "day 1"


thanks again ... i think i got it.
 

StevePitts

Senior Squad
nutunited;2257988 said:
Hope you don't mind Steve, thought i'd save you the hassle!
No problem at all. It is always nice to see someone else using the forum search features ;)

mj585;2258008 said:
it seems like its the number of days (because when im increasing by one day, the FIFA format increases by one) --and 15/10/1582 is "day 1"
FWIW (which may well be absolutely nothing) I found it much easier to get my head around a slightly smaller value, so I subtract a fixed value from the FIFA base date to give a date based on 1 Jan 1900 instead. No huge advantage to it, except that as an old mainframe programmer I am always happy when I can store a value in a smaller space (the resulting base dates fit in a two byte unsigned integer rather than needing a four byte value)
 


Top