benkeen / generatedata

A powerful, feature-rich, random test data generator.
https://generatedata.com
2.2k stars 611 forks source link

Expand on options for CLI for Date DT from and to formats #825

Open benkeen opened 1 year ago

benkeen commented 1 year ago

Yuck. For the CLI usage of the Date Data Type you have to provide the fromData and toDate in numeric format: a seconds timestamp value. This should be improved to allow more human-readable formats, like MM/DD/YYYY. Perhaps even provide an option to provide your own descriptor of the format.

export type GenerationOptionsType = {
    fromDate: number;
    toDate: number;
    format: string;
};
benkeen commented 1 year ago

This also applies to the Time Data Type.