Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Formating date according to the country
Formating date according to the country [message #21016] |
Sat, 25 April 2009 17:16 |
alex100
Messages: 118 Registered: November 2007
|
Experienced Member |
|
|
Hello,
I am using a SQLite3 database. To the best of my knowledge, SQLite database stores al dates in the form:
'2009-04-17'
or
'YYYY-MM-DD'
right?
So, to get the date from the database and show it in an arrays control or label i do:
Date dtDate=Date(SQL[8]);
String strDate=Format("%2.2d-%2.2d-%2.2d",
dtDate.day,dtDate.month,dtDate.year);
But this statically formats date in DD-MM-YYYY format.
So, how can i format a date according to a specific country language or according to the operating system format?
Many tanks
Alex
I am geting
|
|
|
|
|
Formating date according to the country
By: alex100 on Sat, 25 April 2009 17:16
|
|
|
Re: Formating date according to the country
By: mirek on Wed, 29 April 2009 20:31
|
|
|
Re: Formating date according to the country
|
|
|
Re: Formating date according to the country
By: mirek on Thu, 30 April 2009 14:08
|
|
|
Re: Formating date according to the country
By: alex100 on Sat, 02 May 2009 10:01
|
|
|
Re: Formating date according to the country
By: koldo on Sun, 03 May 2009 16:47
|
|
|
Re: Formating date according to the country
By: mirek on Sun, 03 May 2009 19:06
|
|
|
Re: Formating date according to the country
By: kbyte on Mon, 04 May 2009 12:45
|
|
|
Re: Formating date according to the country
By: alex100 on Mon, 04 May 2009 13:58
|
|
|
Re: Formating date according to the country
By: koldo on Mon, 04 May 2009 14:11
|
|
|
Re: Formating date according to the country
By: alex100 on Mon, 04 May 2009 14:17
|
Goto Forum:
Current Time: Mon Apr 29 10:19:37 CEST 2024
Total time taken to generate the page: 0.02119 seconds
|