by Noel Castillo (1 Submission)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 14th July 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Set datepicker to first day or last day of the current month. This code works on any regional system date setting.
API Declarations
'Then use the code to initialize their values.
'Set datePick1 to the first day of the current month
datePick1.Value = DateAdd("d", -(Day(Now) - 1), Now)
'Set datePick2 to the last day of the current month
datePick2.Value = DateAdd("d", -(Day(DateAdd("m", 1, Now))), _
DateAdd("m", 1, Now))
No comments have been posted about Set datepicker to first day or last day of the current month. This code works on any regional syste. Why not be the first to post a comment about Set datepicker to first day or last day of the current month. This code works on any regional syste.