in reply to Re: Re: Convert date format in database table.
in thread Convert date format in database table.

Why use a regex when split will do?
Because a regex allows for more precise format matching (year can be '\d{4}', the rest can be '\d{1,2}) in case, e.g., we have badly formatted dates and we don't want errors upon inserting to the database. I know, it's not necessarily a great reason, but it's a reason :-)
  • Comment on Re: Re: Re: Convert date format in database table.