Hi I posted this on the Horse racing forum and it was suggested I may get a better response on here. Fingers crossed
Hi within the Computer Timeform Table the dates are expressed as numbers for example 1060527 = 27/05/2006
CAn anyone give me a steer as to how I convert them to dd/mm/yyyy by writing a formula in excel Also is the timeform format a universal DB format or did they just invent it themselves?
Thanks in advance.
Smar Tarse 23 Mar 11:18
Iam not sure about excel, but if i was doing it in VBasic i would do it something like this.
'==========================================
Public Function convert_date(the_date As String) As String
Dim the_year As String, the_month As String, the_day As String
excel will add 1900 automatically to the year parameter you pass to the date() function if it's between 0 and 1899 - so 106 becomes 2006 anyway.
TBH, it doesn't matter. if you pass a value 2000, it doesn't add 1900 so it won't make any difference.
excel will add 1900 automatically to the year parameter you pass to the date() function if it's between 0 and 1899 - so 106 becomes 2006 anyway.TBH, it doesn't matter. if you pass a value 2000, it doesn't add 1900 so it won't make any difference.
I think ILBM was more deserving of your thanks ILBM.
ILBM, I was thinking if the tf date was 1550101 would excel not assume that the year was 155 unless the 1900 was added? If not, how would you create such a date?
I think ILBM was more deserving of your thanks ILBM.ILBM, I was thinking if the tf date was 1550101 would excel not assume that the year was 155 unless the 1900 was added? If not, how would you create such a date?
Feck, excel's date function checks the parameter passed in for the year. If it's between 0 and 1899 it adds 1900 to it on your behalf before using it to format the date.
So 0 = 1900, 1899=3799. I doubt if anyone will be using the ssheet in the year 3799. :)
Adding 1900 before passing in as you suggested still works ok, because excel doesnt add (because year is now = 1900). This method would carry on working after 3799 too - so it's more futureproof!
Feck, excel's date function checks the parameter passed in for the year. If it's between 0 and 1899 it adds 1900 to it on your behalf before using it to format the date.So 0 = 1900, 1899=3799. I doubt if anyone will be using the ssheet in the year