Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 4047

Insert dates in SQLite

$
0
0

Good evening group, a tip on dates in SQLite … I’m switching (as I can) from Ms Access management to Sqlite, and I’m finding some differences with the management of dates. I’m interested in dates in the format dd/mm/YYYY, I thought about the following … set a preformatting with the ValidationMask of the textboxes with ##/##/####. Then for each sequence of data entered check if they are numbers and finally, if they are numbers check that it is a valid date. Then archive it in the format dd/mm/YYYY. I would like to create a global Method, to be applied on each insertion. Is this the right way? Only in one case the data is stored like this: dd/mm/YYYY HH:MM:SS, in this case how do I manage the date? I’m not interested in HH:MM:SS. (25/10/2024 09:10:54). Can I still manage the dates with a general method and possibly intercept this exception?

9 posts - 5 participants

Read full topic


Viewing all articles
Browse latest Browse all 4047

Trending Articles