Get Date from String

前端 未结 5 595
梦谈多话
梦谈多话 2020-12-16 05:11

Lets say I have one of following strings:

\"Hello, I\'m a String... This is a Stackoverflowquestion!! Here is a Date: 16.03.2013, 02:35 and yeah, plain text          


        
5条回答
  •  萌比男神i
    2020-12-16 05:47

    Create a method whose parameters are a regular expression to catch the date format and the string that you will be extracting the date from. I believe if you don't have a format that will be used then it won't be possible to extract the date from a series of alphanumeric characters in a string.

提交回复
热议问题