var date:Date = new Date();
lblFooter.text = "© " + date.fullYear.toString() + " MyOrganization.";
lblFooter.text = "© " + date.fullYear.toString() + " MyOrganization.";
This will produce the following result:
© 2008 MyOrganization.
To correct this, use the HEX value instead,
var date:Date = new Date();
lblFooter.text = "\u00A9 " + date.fullYear.toString() + " MyOrganization.";
lblFooter.text = "\u00A9 " + date.fullYear.toString() + " MyOrganization.";
which gives you,
© 2008 MyOrganization.
Note that the HEX code must be 4 digits. If, as in this case, the code is only 2, you'd precede it with 0's. To look up the codes, go here.
2 comments:
Ahhhh knew there must have been a way! Wicked thanks for that
Glad it's helpful!
Post a Comment