<div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno lun 29 apr 2019 alle ore 15:41 David Silverwood via User <<a href="mailto:user@lists.gambas-basic.org">user@lists.gambas-basic.org</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-m_4500189560173587531yahoo-style-wrap" style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div>Hi</div><div>I'm new to the forum so please forgive any mistakes in protocol. I am also pretty new to Gambas and have a lot to learn, so please forgive once again any stupid questions or mistakes.</div><div>Am trying to get Gambas dates to work for me. I have a SQLite3 database and as we know SQLite dates are stored as YYYY-MM-DD. It seems Gambas dates are stored MM-DD-YYYY which in South Africa doesn't work as our local dates are stored dd-mm-yyyy. Now, when I format$ my dateboxes/textboxes to read yyyy-mm-dd, depending on the date, I either get a blank box or the month and day are swopped and therefore also renders the date unusable here. </div><div>My localisation settings for Linux Mint 18.3 KDE are correct.</div><div>How can I convince Gambas to use the local date settings or at least format the date to the 'correct' format for our area?</div><div><br></div><div>The problem occurs when I load the dates from the database and try and format the dates to 'yyyy-mm-dd' using</div><div><span><div>  If edtDate.Text Then</div><div>    dDate = Val(edtDate.Text)</div><div>    edtDate.Text = Format$(dDate, "yyyy-mm-dd")</div><div>  Endif</div></span><br></div><div>Any but any suggestions/directions would be much appreciated.</div><div><br></div><div>Thanks</div><div><br></div><div>David</div></div></div></blockquote><div><br></div><div>Hi David,</div><div>if I understand the problem, you could download ReportTest from the Software farm > Examples and see how the project loads the dates into SQLite and then shows them.<br>I hope it also works on the 3.8<br>If instead of installing you just download it you can still see the code.</div><div><br></div><div>Regards</div><div>Gianluigi<br></div></div></div></div>