kk have all but got it working, only prob is that if i mod the
loopdate by 7 it means that my dates on the 1st line are out of sync by
1 column, if I mod by column it means that my dates on the 1st 2 line
are out of sync by 5 columns, unsure of how to fix this.
Define Column As Int = 1
Define loopdate As Int = 0
Define remainder As Int = 0
Define date As String = Today()
Define theday As Int = DayOfWeek(date)
Define themonth As Int = 1
Define theyear As Int = Year(date)
ShowConsole()
ConsoleWriteLine( MonthName( Month(Today()), False )+ "\t" + Today() ) //writes the month as string and date as int
While Column <= 7 // DAYS OF THE WEEK
ConsoleWrite( "" + DayName( Column, True ) + "\t" )
Column = Column + 1
End While
ConsoleWriteLine("")
Column = 1
While Column < theDay // INDENTS THE GAPS BEFORE THE DAYS OF THE MONTH
ConsoleWrite( "\t" )
Column = Column + 1
End While
For loopdate = 1 To DaysInMonth(theyear,Month(Today() ))
theday = theday + 1
remainder = loopdate Mod 7
If remainder = 0 Then
ConsoleWrite("" + loopdate+ "\t")
ConsoleWriteLine("")
Else
If remainder <>0 Then
ConsoleWrite("" + loopdate+ "\t")
End If
End If
Next