Customize DateTime Generator MinValue/MaxValue
tkdennis
Posts: 114
I'm trying to use the DateTimeGenerator.xml in the UserExample\config directory to make an specific date range generator. How do I convert a date to the MinValue and MaxValue numbers? Is there a formula to use?
Thanks,
Traci
<generator type="RedGate.SQLDataGenerator.Generators.DateTime.DateTimeGenerator" name="DateTimeGenerator" description="DateTimeGenerator..." category="MyApp"> <property name="MinValue">633032064000000000</property> <property name="MaxValue">633346560000000000</property>
Thanks,
Traci
Comments
http://www.codeproject.com/KB/database/ ... Ticks.aspx
I hope this works for you.
I'm copying the code I used from the article and the comments, if anyone else needs it: