Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

European Date format

Status
Not open for further replies.

ChefSausage

Programmer
Oct 19, 2002
36
US
Is there a way to have a formfield of european date formatted text be stored as such, so it outputs in the sameformat? When I output it from the database it's reversing the month and day back to US standard.
 
since almost every database stores dates as integer numbers, the choice of which format to display it in is usually a settable default in the database, plus, you can use formatting functions in the sql(e.g. FORMAT() in access, CONVERT() in sql server, TO_CHAR in oracle), or, alternatively, if you choose to return an actual date object in the result set, you can then use coldfusion's
DateFormat function

but, to recap, dates are not stored in any particular format, they are stored as the number of days since january 1, 1573, or some such (depends on the database)


rudy
 
Thank you for the info. I don't know the syntax for the CONVERT() function, but the date format in CF works all the same. Just wanted to make sure I wasn't missing any crucial information.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top