N Number11 Member Local time Today, 19:08 Joined Jan 29, 2020 Messages 623 Jan 28, 2022 #1 Hello, I need to change the formatting of this strange date layout to standard uk date 2021-11-24T01:00:00.000Z 2021-12-13T11:18:10.684Z
Hello, I need to change the formatting of this strange date layout to standard uk date 2021-11-24T01:00:00.000Z 2021-12-13T11:18:10.684Z
arnelgp ..forever waiting... waiting for jellybean! Local time Tomorrow, 02:08 Joined May 7, 2009 Messages 20,323 Jan 28, 2022 #2 CDate(Left$([DateField], Instr(1, [DateField], "T")-1) then use your Regional setting to set the Date format to UK.
CDate(Left$([DateField], Instr(1, [DateField], "T")-1) then use your Regional setting to set the Date format to UK.
N Number11 Member Local time Today, 19:08 Joined Jan 29, 2020 Messages 623 Jan 28, 2022 #3 arnelgp said: CDate(Left$([DateField], Instr(1, [DateField], "T")-1) then use your Regional setting to set the Date format to UK. Click to expand... doesn't seem to work getting syntax error on CDate
arnelgp said: CDate(Left$([DateField], Instr(1, [DateField], "T")-1) then use your Regional setting to set the Date format to UK. Click to expand... doesn't seem to work getting syntax error on CDate
arnelgp ..forever waiting... waiting for jellybean! Local time Tomorrow, 02:08 Joined May 7, 2009 Messages 20,323 Jan 28, 2022 #4 add another ) at the end: CDate(Left$([DateField], Instr(1, [DateField], "T")-1))
N Number11 Member Local time Today, 19:08 Joined Jan 29, 2020 Messages 623 Jan 28, 2022 #5 arnelgp said: add another ) at the end: CDate(Left$([DateField], Instr(1, [DateField], "T")-1)) Click to expand... nope
arnelgp said: add another ) at the end: CDate(Left$([DateField], Instr(1, [DateField], "T")-1)) Click to expand... nope
Minty AWF VIP Local time Today, 19:08 Joined Jul 26, 2013 Messages 10,659 Jan 28, 2022 #6 If you want to retain the time data try (from the immediate window) ?cdate(left (Replace ("2021-11-24T01:00:00.000Z","T"," "),19)) 24/11/2021 01:00:00 In a query CDate( Left (Replace ([DateField],"T"," "),19))
If you want to retain the time data try (from the immediate window) ?cdate(left (Replace ("2021-11-24T01:00:00.000Z","T"," "),19)) 24/11/2021 01:00:00 In a query CDate( Left (Replace ([DateField],"T"," "),19))
N Number11 Member Local time Today, 19:08 Joined Jan 29, 2020 Messages 623 Jan 28, 2022 #7 Minty said: If you want to retain the time data try (from the immediate window) ?cdate(left (Replace ("2021-11-24T01:00:00.000Z","T"," "),19)) 24/11/2021 01:00:00 In a query CDate( Left (Replace ([DateField],"T"," "),19)) Click to expand... Thank you that did the job
Minty said: If you want to retain the time data try (from the immediate window) ?cdate(left (Replace ("2021-11-24T01:00:00.000Z","T"," "),19)) 24/11/2021 01:00:00 In a query CDate( Left (Replace ([DateField],"T"," "),19)) Click to expand... Thank you that did the job
arnelgp ..forever waiting... waiting for jellybean! Local time Tomorrow, 02:08 Joined May 7, 2009 Messages 20,323 Jan 28, 2022 #8 Number11 said: nope Click to expand... remove the $ sign.