Calculating dates of previous month...


Author
Message
StarkMike
StarkMike
StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)StrataFrame User (450 reputation)
Group: Forum Members
Posts: 436, Visits: 944
Here's how I am determining the first and last day of the previous month.



Me.tbdtpStartDate.EditValue = DateSerial(Year(Now()), Month(Now()) - 1, 1)

Me.tbdtpEndDate.EditValue = DateSerial(Year(Now()), Month(Now()), 0)



It seems to me there should be a more elegant way in VB .NET. Does anybody know of one?

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search