0

I have a oracle report which is to display a set of values and it can be generated both as pdf and csv formats. Excel doesnt consider the trainling zeros,so i tried the following way.

       IF :DESFORMAT='SPREADSHEET' THEN
               :CP_2:= '="'||:cmdt_grp_cd||'"';
       ELSE
               :CP_2:=:cmdt_grp_cd;
       END IF;

in the same how to set date values kindly suggest me?

Lalit Kumar B
  • 47,486
  • 13
  • 97
  • 124
MastanSky
  • 57
  • 1
  • 10
  • 1
    Consider accepting answers to your previous questions first? http://stackoverflow.com/questions/33030316/internal-functionality-of-dual-table – Lalit Kumar B Oct 28 '15 at 05:38

1 Answers1

0

Maybe use the DATE like this:

:CP_2:= '=DATE('||TO_CHAR(:cmdt_grp_cd, 'YYYY;MM;DD')||')';

Problem is, the separator can be , or ; (or anything else actually) depending on your local windows settings.

I found this one https://superuser.com/a/686415, however I did not test it.

Community
  • 1
  • 1
Wernfried Domscheit
  • 54,457
  • 9
  • 76
  • 110