Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
alex100 is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: a dll usage failure
Next Topic: Help needed to set the focus
Goto Forum:
  


Current Time: Mon Apr 29 10:19:37 CEST 2024

Total time taken to generate the page: 0.02119 seconds