cancel
Showing results for 
Search instead for 
Did you mean: 

Date in YYYY/MM/DD format from Time Stamp

0 Kudos

Hello All,

I want to have a Date in YYYY/MM/DD format from time stamp in WEBI.

The time stamp dimension is coming as Oct 2 2015 10:09AM .

I want it in 2015/10/02.

I need the day as 02 and not 2.

My final aim is once I have that date in 2015/10/02 format , I need to sort based on date.

Sunny

Accepted Solutions (1)

Accepted Solutions (1)

amitrathi239
Active Contributor
0 Kudos

Hi,

Right click  on date object in the table->Format Number->date/Time->Click custom->add the yyyy/MM/dd and click OK.

Amit

0 Kudos

Hello Amit,

I am not getting the option -Format Number when I right click on the date object in the table.

Sunny

former_member211423
Active Participant
0 Kudos

Hi Rupak,

Use below:

V_Date= FormatDate([Your Date Object];"yyyy/MM/dd")

Regards

Sheetal Sharma

0 Kudos

Hi Sheetal,

Getting the below error

Former Member
former_member220624
Contributor
0 Kudos

Hi Rupak,

This might be because your date object is not of date type.

In this case create a variable and use the 'ToDate' function.

Let us know if it works.

Regards,

Amit

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rupak,

There is 2 option..

!click the Particular column, Format number --> change the format as you like.

2. Create variable with Format Date