| Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Formating date according to the country Goto Forum:
	| 
		
			| 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
 |  
	|  |  |  
	|  |  
	|  |  
	|  |  
	|  |  
	|  |  
	|  |  
	|  |  
	| 
		
			| Re: Formating date according to the country [message #21127 is a reply to message #21124] | Mon, 04 May 2009 13:58   |  
			| 
				
				
					|  alex100 Messages: 118
 Registered: November 2007
 | Experienced Member |  |  |  
	| | luzr wrote on Sun, 03 May 2009 19:06 |  | Yes, PT-PT is not yet translated. Date formatting/scanning strings are normally part ot language translation.
 
 I have updated translation tutorial
 
 http://www.ultimatepp.org/srcdoc$Core$Translating$en-us.html
 
 you migth be interested in providing PT-PT translation for us.
 
 Mirek
 
 | 
 
 
 Hi, I think I cant provide date format by burning it on the source code because I want my application compliant with internationalization, which means that, if it is executed on France, it gets the format from the underlying SO or something and show dates in french format. If I burn the format then the format is always the same
  
 
 Another option id to ask for the user (on the first app launch) the choosed date format and then respect it always.
 
 
 Of course I am interested in helping you with PT translations!
 As you may know Portuguese is one of the most spoken languages into the world. From europe to asia, africa, south america and near Autralia (East Timor)
 
 As you also may know, I not yet a upp pro (but i want to be!) so you have to guide me how can I help you on translations.
 
 Thank you
 
 Alex
 
 
 |  
	|  |  |  
	|  |  
	|  | 
 
 
 Current Time: Sat Nov 01 10:54:13 CET 2025 
 Total time taken to generate the page: 0.02483 seconds |