Re: First Day of the Month

From: Trev Hunter (hunter_trev_at_hotmail.com)
Date: 02/11/04


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



Relevant Pages