General information
Category:
Coding, syntax & commands
For first day of last month:
Text1.Text = DateSerial(DatePart("YYYY", Date), DatePart("m", Date) - 1, 1)
For last day of last month:
Text1.Text = DateSerial(DatePart("YYYY", Date), DatePart("m", Date), 0)
For first day of next month:
Text1.Text = DateSerial(DatePart("YYYY", Date), DatePart("m", Date) + 1, 1)
For last day of next month:
Text1.Text = DateSerial(DatePart("YYYY", Date), DatePart("m", Date) + 2, 0)
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only