hello, i would like to retrieve data on which the endDate < date.now....something like that..
thanks

select *
from data
where enddatetime <= getdate()

Welcome to DaniWeb hkb261! Please use code tags when posting code on daniweb.

[code=sql] ...query here...

[/code]

But your answer was correct :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.