string.format for binary number format exception code example
Example 1: Error in charToDate(x) : character string is not in a standard unambiguous format
library(lubridate)
data$created_date1 <- mdy_hm(data$created_at)
data$created_date1 <- as.Date(data$created_date1)
Example 2: built in function in c++ for binary to decimal
#include <bits/stdc++.h>
using namespace std;
int main(void){
bitset<8> bits("1000");
int ab = bits.to_ulong();
cout << ab << "\n";
return 0;
}