Thanks Klaus! I will give it a try. ~Roger On Jul 23, 2016 11:46 AM, "Klaus major-k" <[email protected]> wrote:
> Hi Roger, > > > Am 23.07.2016 um 17:34 schrieb Roger Eller <[email protected] > >: > > > > I have an application running on Windows 7. Windows is localized for > > Spanish language, and resides in Mexico. Convert doesn't work. In their > > default format, convert VAR to dateItems returns the original unchanged > VAR > > content. > > > > This is my workaround. Is there a better way? > > > > put "22/07/2016 05:22 p.m." into tMEXdate > > replace "a.m" with "AM" in tMEXdate > > replace "p.m" with "PM" in tMEXdate > > set the itemDel to "/" > > put item 1 of tMEXdate into tDD > > put item 2 of tMEXdate into tMM > > put tMM into item 1 of tMEXdate > > put tDD into item 2 of tMEXdate > > -- now it is the same as in USA > > -- "07/22/2016 05:22 PM" > > convert tMEXdate to dateItems > > don't know if that will work for you, but "usesystemdate" did the trick > for a german date: > ... > set the usesystemdate to TRUE > put "Samstag, 23. Juli 2016 17:44" into tDate > convert tDate to dateitems > put tDate > ... > -> 2016,7,23,17,44,0,7 > > > ~Roger > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > [email protected] > > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
