If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Trunc Date Format

Started by alexanderferreira, 28 Jul 2009 01:05:39 PM

Previous topic - Next topic

alexanderferreira

HI,

I have a field with the date format "2007-04-01 00:00:00.000". I would turn to the following format "2007-04-01", because I am not getting.
With Cognos Impromptu had the option of datetime-to-date that it was a "trunc".
How to do it in Frameworkmanager?

Tks!!

Matt toth

What is the backend database?

If you have sql server - you can use convert(varchar(10), date,101) to convert the data to a string.

Matt

alexanderferreira

Hi Matt,

I am using Oracle..

bl

trunc([fieldname]) is one way in Oracle to strip out the time component from a date/time field.