Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Correct formatting for a date object

Hello,

I have a date object entitled MonthandYear (i.e. 'Jun-2017') and currently in the process of using the following formula:

='(' & concat({$} distinct chr(34) & MONTHandYEAR & chr(34),'|') & ')'

The result is a listing of dates formatted this way (i.e.  ("42736"| "42767" | "42795").   How can I changed the formula above to show the dates as they are in the object (..e. 'Jun-2017').   I've tried solving this myself but for some reason am having an issue with it.

Thanks for your help.

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Sunny,

Thanks for the help. It worked.  Not sure why I could not get it to work on my own.

Thanks again for all of your help.

View solution in original post

3 Replies
sunny_talwar

Try this

='(' & Concat({$} DISTINCT Chr(34) & Date(MONTHandYEAR, 'MMM-YYYY') & Chr(34),'|') & ')'

Anonymous
Not applicable
Author

Hi Sunny,

Thanks for the help. It worked.  Not sure why I could not get it to work on my own.

Thanks again for all of your help.

sunny_talwar

Awesome!!! I am glad I was able to help.

Best,

Sunny