title: How to use this UserDao with Date?
body: <p>The app i'm trying to do is based retrieving current day, week and month data from room database, so my entity only contains id and date,
  but in an older asked question there was an answer like this:</p>
  <p>Date Converter:</p>
  <pre><code>@TypeConverter
      fun fromTimestamp(value: Long?): Date? {
          return value?.let { Date(it) }
      }
  
      @TypeConverter
      fun dateToTimestamp(date: Date?): Long? {
          return date?.time?.toLong()
      }
  </code></pre>
  <p>UserDao:</p>
  <pre><code>@Dao
  interface UserDao {
      @Query(&quot;SELECT * FROM user WHERE birthday BETWEEN :from AND :to&quot;)
      fun findUsersBornBetweenDates(from: Date, to: Date): List&lt;User&gt;
  }
  </code></pre>
  <p>When i am using it i don't know in <code>(from: Date, to: Date)</code> what to put in Date and retrieve data.
  Is there any tutorial or any help online that i missed and might help me?</p>
  <p>And please i'm trying to learn and understand how database and date works, so any help counts.</p>