Hi,
Wonder if anyone can help. I am a beginner to programming and am trying to write some code. I am unable to retrieve Australian horse racing which I think is due to me passing the time in UTC not local time. I can retrieve GB racing OK but not AU. My current coding is as follows. Can anyone please suggest any changes that will help me get Australian races?
Many thanks.
Dim marketStartTime As New StartTime
If Today.IsDaylightSavingTime() Then
marketStartTime.from = Format(Date.Now, "yyyy-MM-dd") & "T" & Format(Now.AddHours(-1), "HH:mm") & "Z"
Else
marketStartTime.from = Format(Date.Now, "yyyy-MM-dd") & "T" & Format(Now, "HH:mm") & "Z"
End If
marketStartTime.to = Today.ToString("u").Replace(" ", "T").Replace("00:00", "23:00")
params.filter.marketStartTime = marketStartTime
Wonder if anyone can help. I am a beginner to programming and am trying to write some code. I am unable to retrieve Australian horse racing which I think is due to me passing the time in UTC not local time. I can retrieve GB racing OK but not AU. My current coding is as follows. Can anyone please suggest any changes that will help me get Australian races?
Many thanks.
Dim marketStartTime As New StartTime
If Today.IsDaylightSavingTime() Then
marketStartTime.from = Format(Date.Now, "yyyy-MM-dd") & "T" & Format(Now.AddHours(-1), "HH:mm") & "Z"
Else
marketStartTime.from = Format(Date.Now, "yyyy-MM-dd") & "T" & Format(Now, "HH:mm") & "Z"
End If
marketStartTime.to = Today.ToString("u").Replace(" ", "T").Replace("00:00", "23:00")
params.filter.marketStartTime = marketStartTime



Comment