Date - String to YYYYMM

Options
cb86
cb86 Registered Posts: 3 ✭✭✭

Hello,

I have a date (YYYYMM) that is being read as a string. How can i convert/parse this date to be read as a date?

Best Answer

  • Célian
    Célian Dataiker, Registered Posts: 4 Dataiker
    Answer ✓
    Options

    "yyyy-MM" would parse dates with a '-' between the year and the month, for example "2021-01"

    To parse "202101" you need to set the format to "yyyyMM" (without the '-')

Answers

Setup Info
    Tags
      Help me…