Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8635

Date functions in data federator

$
0
0

Dear All,

 

We are using the MSU(multi source universe) which uses data federator functions.

Requirement is to create the following object

 

3 digits format (current month - 1).

 

So it should return 001 now as current month is Feb.

 

How we can achieve it here as ADD_MONTH function doesnt work here.

 

We could get it after applying below logic but how to format a date we are stuck.

 

CASE WHEN (month(curDate()))<=1 THEN concat('0',toString(month(curDate()) +11))

ELSE concat('0', toString(month(curDate())-1)) END

 

Regards,

SN


Viewing all articles
Browse latest Browse all 8635

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>