I have this number
20101213 which is a representation of this data 2010 Dec 13th I want to extract the year, month and day numbers from that nu
20101213
2010 Dec 13th
If you don't want to deal with string representation you could also just use mod function like this:
mod
# using mod year = floor(value/10000) month = floor((value %% 10000)/100) day = value %% 100
Which will then extract the relevant parts of the number as expected.