I need to extract the day of week (ex. Tuesday) from a date. My date variable is a nullable datetime which I can also get a timestamp from. How can I use the portable().DayOfWeek function when it only accepts a real number as a date? I dont see how a timestamp can be converted to a real number. Any code example would be great!