VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Set datepicker to first day or last day of the current month. This code works on any regional syste

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.

Rate Set datepicker to first day or last day of the current month. This code works on any regional syste



'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))

Download this snippet    Add to My Saved Code

Set datepicker to first day or last day of the current month. This code works on any regional syste Comments

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.

Post your comment

Subject:
Message:
0/1000 characters