BusinessObjects Board

Sysdate to date format

Hi,

Can i convert sysdate function to user defined date format?

I have to enter sysdate in the target column mapping, but output should be displayed in MMDDYYYY format. Currently, i am getting the output in YYYYMMDD.

Please help.

Arun


Arun.K :us: (BOB member since 2011-10-18)

You might be able to meet your requirement.

Is your output column varchar(8) datatype? If so, use the to_char function. If, however, your target column is a date, the format will be determined by the target database.


Nemesis :australia: (BOB member since 2004-06-09)

You mean to_char(sysdate (),‘MMDDYYYY’)
When i do as above i am getting NULL values in the field.
My target data type is date.

Arun


Arun.K :us: (BOB member since 2011-10-18)

If it is a date, then the mapping is simply sysdate(). A date datatype does not have a format, the conversion from date to string has.


Werner Daehn :de: (BOB member since 2004-12-17)

Thank you Werner.


Arun.K :us: (BOB member since 2011-10-18)