Use weekday() (docs)
>>> import datetime
>>> datetime.datetime.today()
datetime.datetime(2012, 3, 23, 23, 24, 55, 173504)
>>> datetime.datetime.today().weekday()
4
Source : Stackoverflow
. . .
selengkapnya>>If you're trying to connect using "SQL Server Authentication" then you may want to modify your server authentication: Within the Microsoft SQL Server Management Studio in the object explorer: Right click on the server and click Properties Go to the Security page Under Server authentication choose the SQL Server and Windows Authentication mode radio button Click. . .
selengkapnya>> Code Meaning Example %a Weekday as locale’s abbreviated name. Mon %A Weekday as locale’s full name. Monday %w Weekday as a decimal number, where 0 is Sunday and 6 is Saturday. 1 %d Day of the month as a zero-padded decimal number. 30 %-d Day of the month as a decimal number. (Platform specific) 30 %b Month as locale’s abbreviated name. Sep %B Month as locale’s. . .
selengkapnya>>For Loop Pada Qweb
<t t-foreach="range(counter)" t-as="i">
...
</t>
. . .
selengkapnya>>