Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (17.6k points)

I have an issue where I'm trying to get a date value out of 2 columns. One has int values in the '2017" format and the other has 'April' as the 2nd. How can I combine them to create a "2017-04-0000" date?

enter image description here

1 Answer

0 votes
by (47.2k points)
  • The  best option available is to use the dateparse formula. That way you can combine your separate fields and create a new datestamp.

  • Create the calculated field as follows, note here I have made the day the 1st of the month you could change this to suit your purpose:

dateparse('ddMMMMyyyy', '01'+[Manufacture Month]+str([Manufactured year]))

  • Refer to this link here  for more details

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Feb 11, 2021 in Java by dante07 (13.1k points)

Browse Categories

...