Function formatDateTime
once
1000
10000
format
%F %T
%H:%M:%S
%Y-%m-%d %H:%M:%S
%m/%d/%Y %H:%M:%S
Hello
The current time is: %I:%M %p
SELECT count() FROM system.numbers WHERE NOT ignore(toDateTime('2017-01-01 00:00:00') + number % 100000000 + rand() % 100000 AS t, formatDateTime(t, '{format}'))