Okay, first of all, you completely whacked the code I gave you for ISODate()
Go back to my code and use it *EXACTLY AS CODED*. Your code WILL NOT WORK.
I will repeat it here. DO NOT CHANGE IT.
Function ISODate( dt )
iso = year(dt) & "/" & month(dt) & "/" & day(dt)
If TimeValue(dt) <> 0 Then iso = iso & " " & TimeValue(dt)
ISODate = "#" & iso & "#"
Then, to answer you other question:
getdate = #24/06/2013 10:47#
response.write "Here: " & ISODate( DateValue(getdate) )
DateValue() extracts just the date part from a date+time. TimeValue() extracts just the time part.
IMPORTANT: Do *NOT* use parentheses around the argument to Response.Write. Response.Write is a SUB
. Yes, it works, for reasons I'm not going to go into (too long-winded), but all it does is slow down your code slightly.