• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

Dreamweaver SQL statement

I have a web page connecting an Oracle db.  I'm using dreamweaver to develop this page. the problem is some data on the DB is stored in min from 1900 or so.. How can I convert that to a date in the dreamweaver sql statement.   in access I use dateadd("n",Totalmin,#12/31/1899#)

Thanks
0
moralju
Asked:
moralju
1 Solution
 
alexhoganCommented:
Oracle will automatically convert to a date datatype when presented with a date formated string.

However if you wish to over ride that you can use;

TO_CHAR(b, 'YYYY/MM/DD')

Where;

SELECT TO_CHAR(b, 'MM/DD/YYYY') AS b
FROM x;

will return;

03/04/2005
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now