Re: First Day of the Month
From: Trev Hunter (hunter_trev_at_hotmail.com)
Date: 02/11/04
- Next message: Devils Advocate: "Re: Work in VB.NET, ASP.Net, Networking"
- Previous message: Herfried K. Wagner [MVP]: "Re: Sharing common code"
- In reply to: Jeff: "First Day of the Month"
- Next in thread: Jeff: "Re: First Day of the Month"
- Reply: Jeff: "Re: First Day of the Month"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 11 Feb 2004 14:38:22 -0000
Jeff,
Try using
-------------------------------
Dim dtNow As Date = Date.Now
Dim dtFirstOfMonth As Date = dtNow.AddDays(-dtNow.Day + 1)
-------------------------------
HTH,
Trev.
"Jeff" <anonymous@discussions.microsoft.com> wrote in message
news:ADDE80EE-DC8C-4451-9688-5F4E73C7D122@microsoft.com...
> I was wondering how to get the first day of the month as a datetime value.
I don't want to set the date to a specified format because I want to display
it, the way the user has it set on their machine.
>
> Thanks
> Jeff
- Next message: Devils Advocate: "Re: Work in VB.NET, ASP.Net, Networking"
- Previous message: Herfried K. Wagner [MVP]: "Re: Sharing common code"
- In reply to: Jeff: "First Day of the Month"
- Next in thread: Jeff: "Re: First Day of the Month"
- Reply: Jeff: "Re: First Day of the Month"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|