Can't get VBA/JS Sample Code Date to work! HELP?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SimonN
    Junior Member
    • Dec 2014
    • 71

    #1

    Can't get VBA/JS Sample Code Date to work! HELP?

    Hello,

    Whenever I change the date from NOW to a different time in order to retrieve a specific horse race other the first one from NOW - it doesn't work!?

    In the case of the Excel VBA example the change of date and time to a date and time after that of the first race from NOW still returns the first race from NOW.

    See - it makes no difference -

    Dim dateNow As Date: dateNow = Format(Now, "yyyy-mm-dd hh:mm:ss")
    Dim dateNextDayNow As Date: dateNextDayNow = DateAdd("d", 3, dateNow)

    I have tried everything - even changed my system date to after the first race from NOW and it still brings back the first race from now.

    In desperation I tried the JS but it says "cannot read property market ID of undefined".

    Please help me to tailor the sample code so that I can look up a particular race meeting on at or from any given date / time.

    Kind regard,

    Simon
Working...
X