Jump to content

Python Get Day Of Week


Martyn Patterson 3

Recommended Posts

Pulling a document property that is a date data type I want to pull the day of the week. Here is my current script.

from Spotfire.Dxp.Data import DataType, DataValue

from System import DateTime

 

beginDate = Document.Properties["dteStartDate"]

print beginDate.weekdayI get the following error:AttributeError: 'DateTime' object has no attribute 'weekday'

What do I need to do here

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...