cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Current_Data() in YYYYMM format in Datasphere View

alexander_john_berlin
Participant
0 Likes
1,947

I'm looking for the best way to format the current date into YYYYMM in a Datasphere View format so for today it should be 202406. To I have to format it as a string first and then recoverd it to date with TO_DATE()?

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Simon_Ye
Product and Topic Expert
Product and Topic Expert

Try this: TO_NVARCHAR(CURRENT_DATE,'YYYYMM')

 

Answers (0)