Produto: | TOTVS Reports | |
Versões: | 12.1.x | |
Ocorrência: |
| |
Ambiente: |
| |
Passo a passo: |
Conteúdo1 - Introdução
Na versão 11.80, o provedor de dados é o Microsoft OLE DB Provider for Oracle, disponibilizado pela própria Microsoft, enquanto que na versão 12 o provedor de dados é o Devart ADO .Net Provider, disponibilizado pela empresa Devart.
| |
Observações: |
|
This Oracle tutorial explains how to use the Oracle/PLSQL TO_DATE function with syntax and examples.
The Oracle/PLSQL TO_DATE function converts a string to a date.
The syntax for the TO_DATE function in Oracle/PLSQL is:
TO_DATE( string1 [, format_mask] [, nls_language] )
The TO_DATE function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle TO_DATE function examples and explore how to use the TO_DATE function in Oracle/PLSQL.
For example:
TO_DATE('2003/07/09', 'yyyy/mm/dd') Result: date value of July 9, 2003 TO_DATE('070903', 'MMDDYY') Result: date value of July 9, 2003 TO_DATE('20020315', 'yyyymmdd') Result: date value of Mar 15, 2002
You could use the TO_DATE function with the dual table as follows:
SELECT TO_DATE('2015/05/15 8:30:25', 'YYYY/MM/DD HH:MI:SS') FROM dual;
This would convert the string value of 2015/05/15 8:30:25
to a date value.