Joined: 22 May 2009
Online Status: Offline
Posts: 347
Posted: 28 Oct 2011 at 10:43am
You could combine the dayofweek function with the dateadd function to achieve this. So:
if dayofweek({table.datefield})=7 then dateadd('d', -1, {table.datefield}) else if dayofweek({table.datefield})=1 then dateadd('d', +1, {table.datefield}) else {table.datefield}
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum