Hi,
I need to publish a specific event in a particular time. I found publish from field in event document. But how can i use this in Where condition? Please give the complete syantax and procedure. The forum is not helpful. It saying only how to take server date in sql server not how to use in web part where condition.
Regards,
Sarathlal
Instead of using GETDATE() from SQL Server you can use a macro {% CurrentDateTime%} which will return the server datetime value.
GETDATE()
{% CurrentDateTime%}
How can i check this macro with "Publish from" field in event. I used Publish from>= {% CurrentDateTime%}. But it returns error
You need to use this macro in the WHERE clause in your Repeater or other listing web part, not in the actual document itself. The document publish from/to should have actual dates in them.
Please, sign in to be able to submit a new answer.