I have a procedure that defaults todays date if no parameter is passed into it.
CREATE Procedure GetDirectoryRenewalReminders
(@DateToday datetime = Null)
As
If @DateToday Is Null
Begin
Set @DateToday = GetDate()
End
...
Go
How can I ensure that the GetDate() value will default to the current UK time when called from an application in the UK, and a Australian time when called from an applciation in Australia?