Very nice! Adapter Pattern to the rescue :D
2018-06-14 18:50 GMT+02:00 Stephen Russell srussell705@gmail.com:
I don't ever remember writing code like this in FP/VFP: myDate = createObject("Date")
That is great that you can, and I bet it would have been easier to pass a date to another language in a function.
On Thu, Jun 14, 2018 at 10:05 AM Eric Selje Eric@saltydogllc.com wrote:
/Too bad/ Hey, that's *exactly* what the DateTime static variable type in FoxTypes https://github.com/eselje/FoxTypes is all about.
myDate = createObject("Date") myDate.value = date() ? myDate.ToString() && 06/14/2018 ? myDate.ToString('F') && June 14, 2018 00:00:00 AM ? myDate.ToString('D') && Thursday, June 14, 2018 (etc etc etc)
Eric
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---