‎2024 Jun 14 2:02 PM - edited ‎2024 Jun 14 2:03 PM
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.
Request clarification before answering.
Try this: TO_NVARCHAR(CURRENT_DATE,'YYYYMM')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.