Setting aliases

How come if I set an alias as such:

alias dt 'date "+%Y-%m-%d %H:%M:%S"'

it will work as intended, ie the command 'dt' does prompt the date and time, but not when invoked through a script as such:

#!/bin/sh
alias dt 'date "+%Y-%m-%d %H:%M:%S"'

The OS is FreeBSD 7.1.

Thanks in advance

. myShellScript.sh

Thank you for your prompt answer. The response is "permission denied" irrespective of whether as regular user or root. There are many other lines in the script and the script is commonly invoked as follows:

./myscript.sh
. ./myscript.sh

I currently have the following in the script, which seems to work:

echo 'alias dt' "'"'date "+%Y-%m-%d %H:%M:%S"'"'"