View source: R/bt_guess_date.R
bt_guess_date | R Documentation |
Feed me a string with a date and I'll try to return a date formatted value.
bt_guess_date(tgt.string)
tgt.string |
a string containing a potential date in the appropriate format |
The target string should contain a day value as a 1- or 2-digit number, a year as a 4-digit number and a month as a word (e.g. 'December').
The month guessing uses bt_guess_month() and thus supports all the languages which that function can use.
I have not seen any instances where the date is stored with the year as two digits. If this is problematic I can implement something to catch these cases.
date in date format
bt_guess_month("23eme Aout, 2021")
#returns "2021-08-23"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.