Very nice! Adapter Pattern to the rescue :D
2018-06-14 18:50 GMT+02:00 Stephen Russell <[email protected]>: > 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 <[email protected]> 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 --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CAGQ_Juk=3kthfkcg+keo6waztuofbcyfmg043ozacp7aroy...@mail.gmail.com ** 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.

