You have a set of Add functions: AddYears, AddDays, AddHours, Minutes,
Seconds, Ticks... where's AddMonth, besides the obvious GOMONTH()?

Time support native in VFP has always been weak. I wrote a s2hms and
hms2s to convert between seconds and HH:MM:SS strings.

DTOT converts a Data to a datetime by setting time to 00:00:00. It
would be handy to have the ability to set the time as well, even
though it's pretty much the trivial

RETURN DTOT(thedate)+hms2s(thetime)

A pretty print would be handy, I don't know C#, but PHP et all has
fprint with a unix-standard-y format string, String.Format does the
same in C# apparently:

I can't tell you how many times I've written a UDF or inline code to
generate variations on "Monday, December 31, 1999 12:34:56 am" -
having that in one place would be handy.

On Tue, May 15, 2018 at 4:20 PM, Eric Selje <> wrote:
> I've started a class for a C# like DateTime static class here:
> I may steal some of the ideas here to embellish it, but if you have time
> and want to contribute please clone this repo and submit a pull request
> when done. It's pretty handy.
> Eric
> On Wed, May 9, 2018 at 10:39 AM, Ted Roche <> wrote:
>> On Tue, May 8, 2018 at 5:39 PM, Richard Kaye <> wrote:
>> > I owe you a Scotch next time you're in the area.
>> >
>> Deal!
>> --
>> Ted Roche & Associates, LLC
[excessive quoting removed by server]

Post Messages to:
Subscription Maintenance:
OT-free version of this list:
Searchable Archive:
This message:
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to