I try to explain better
I want to know if there is a function that returns the format of a date:
examples
input date function output format
"06:02:36" F(...) "%H:%M:%S"
"06/23/2013 03:45:23" F(...) "%m/%d/%Y %H:%M:%S"
"01APR2008:09:00:00" F(...) "%d%b%Y:%H:%M:%S"
"23/06/2013 03:45:23" F(...) "%d/%m/%Y %H:%M:%S"
"1/05/2015 0:30" F(...) "%d/%m/%Y %H:%M"
"20140101" F(...) "%Y%m%d"