Stephen,
How about
ttDateTime = datetime()
? dtot(gomonth(ttDateTime, -1)) + (ttDateTime - dtot(ttod(ttDateTime)))
Cheers,
Andrew
>I have a issue with date time fields having the wrong date (y2k check) and I have to change the date back and not wack the time.
>
>gomonth(,-1) will change the date portion just fine, but it will set the time to midnight 12:00:00 AM. Which sucks when the time clock is now screwed!
>
>any ideas?
>
>__Stephen
If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?
From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."
All my FoxTalk and other articles are available on my
web site.
Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.