Function returning the zero-based day of week

What you’re looking for aren’t NinjaTrader specific so you aren’t going to find it in NT documentation. Look online for C# documentation.

For your Q1:

Q2:

Q3:

Hope this helps.