Search found 14017 matches

by Klaus
Thu Aug 21, 2025 12:04 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Problem with date
Replies: 29
Views: 1355

Re: Problem with date

Code: Select all

...
 convert tdate from system date to long english date
...
YES, SIR! :-)

But you still did not tell us what country (with that system date) you are living in.
by Klaus
Wed Aug 20, 2025 4:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Problem with date
Replies: 29
Views: 1355

Re: Problem with date

USESYSTEMDATE is a LOCAL property!
by Klaus
Wed Aug 20, 2025 3:49 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Problem with date
Replies: 29
Views: 1355

Re: Problem with date

Klaus, I forgot to say, the code you sent me didn't do it. Yes, because we used an invalid (non english) date -> 24/3/25 ... convert fld "field" FROM SYSTEM DATE to seconds convert fld "field2" FROM SYSTEM DATE to seconds ... Will work as long as there ARE in fact system dates in the fields. What c...
by Klaus
Wed Aug 20, 2025 3:19 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Problem with date
Replies: 29
Views: 1355

Re: Problem with date

AHA!
Thank you for the explanation, so I got it wrong the last 69 years! 8-)
by Klaus
Wed Aug 20, 2025 3:09 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Problem with date
Replies: 29
Views: 1355

Re: Problem with date

And how does an ENGLISH date look like?
by Klaus
Wed Aug 20, 2025 2:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Problem with date
Replies: 29
Views: 1355

Re: Problem with date

Ah, yes, my fault!

@CAsba
When using "convert" you need to supply a VALID format.
If you don't specify a format, LC thinks you are using a ENGLISH date (mm/dd/yy)
and 24/3/25 is NOT, so it won't get converted.

I thought you already got a hint about SYSTEMDATE in another thread?


Best

Klaus
by Klaus
Wed Aug 20, 2025 2:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Problem with date
Replies: 29
Views: 1355

Re: Problem with date

I can reproduce this! No idea if this is a bug or a freature.

In the meantime use a variable and write it back after conversion:

Code: Select all

...
put fld "field" into tSecs1
convert tSecs1 to seconds
put tSecs1 into fld "field"
## Same for fld "field2"
...
Best

Klaus
by Klaus
Fri Aug 15, 2025 11:01 am
Forum: Developer Services Marketplace
Topic: ad hoc help with LC development for android / IOS
Replies: 2
Views: 16644

Re: ad hoc help with LC development for android / IOS

Don't you think that Paul MIGHT have solved his problems after a little more than 3 years? 8)

So I suspect you are either a BOT (chatgpt or whatever) or a potential spammer with a faible for lasagne...
by Klaus
Tue Aug 12, 2025 7:50 pm
Forum: Announcements
Topic: LiveCode Create dp-5 released
Replies: 4
Views: 14020

Re: LiveCode Create dp-5 released

Roboti, roboti? :-D
by Klaus
Tue Aug 12, 2025 4:51 pm
Forum: Announcements
Topic: LiveCode Create dp-5 released
Replies: 4
Views: 14020

Re: LiveCode Create dp-5 released

Well, for your interest: LC Create is currently at DP7! 8)
by Klaus
Tue Aug 12, 2025 11:01 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: convert to date
Replies: 24
Views: 5837

Re: convert to date

KlausMaus I have heard before. But Klausimausi??? He is not a toddler, you know. :roll: Craig I did NOT hear KlausMaus before, but I still have an emailaddress @me.com with the name of "klausimausi", which I use from time to time if my own address is on some blacklist. This, adding an i after the a...
by Klaus
Tue Aug 12, 2025 10:57 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: convert to date
Replies: 24
Views: 5837

Re: convert to date

AHA! :-)
Thank you for the info!
by Klaus
Sun Aug 10, 2025 12:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: convert to date
Replies: 24
Views: 5837

Re: convert to date

Could you please tell us what this info (usesystemdate) actually changed for you?
Your examples here did not give any clue that you are NOT using an english date -> 05/11/2025
by Klaus
Sat Aug 09, 2025 6:04 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: convert to date
Replies: 24
Views: 5837

Re: convert to date

Juist tested with your example date:

Code: Select all

...
put "05/11/2025" into tDate
convert tDate to seconds
put tDate
## Gives me the correct value: 1746914400
...
So there mus be something else going wrong on your side...
by Klaus
Sat Aug 09, 2025 3:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: convert to date
Replies: 24
Views: 5837

Re: convert to date

I mean the content of the variable tDate right after this line:

Code: Select all

...
 put smth & "/" & sday & "/" & syr into tDate
...
Convert WORKS in any case, but we need to supply valid dates, that's why I want to look at that value.