node: convert UTC/local datetime to number string