title: Generate random date and time in a service
body: <p>I'm trying to have a kind of method that is in a service that can be accessed by a form so that I can use this method to generate a random date in a date time picker. It just doesn't work however, I have two DTP's called dtp_Current and dtp_New</p>
  
  <p>This is accessed on a form and I have two buttons that say before and after, when before is clicked you are guessing the newly generated date will be before the current date and if you click after it's guessing it's gonna be after the currently generated date. I have to do this using a service however</p>
  
  <p>public int RandomDate()</p>
  
  <p>is what i'd like the method to be called in the Service, how would I go about doing this so when the after button is clicked it checks dtp_Current date to see if dtp_New is larger</p>
  
  <p>I hope this makes sense</p>
  
  <p>summary:
  have a form and a service reference
  need service reference to generate a random date in dtp_Current
  then when before or after is clicked generate a new date in dtp_New 
  then to check if dtp_New is larger or smaller than dtp_Current</p>