Question: I have a button to backup my local database(SQLITE) to another path so that I can email the file to me. How can I copy the SQLite data to my for example downloads folder?

Here is the code of my backup button: 

```
    private void BtnBackup_Clicked(object sender, EventArgs e)
    {
        string fileName = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "backend.db3");
        string backupfile = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments), "backup.db3");
        File.Copy(fileName, backupfile, true);
    }

```

I can check if the data has been copied the problem is when I go to the directory no files is being shown

Answer: 
I guess your database is MS SQL Server.

SQL Server stores time in `HH:MI:SS` format. 
Use `TimeSpan` in your model to store/get the data.

Here is another possible solution: [How to save time only without the date using ASP.NET MVC 5 Data Annotation "DataType.Time?](https://stackoverflow.com/questions/24693572/how-to-save-time-only-without-the-date-using-asp-net-mvc-5-data-annotation-data)
```
DateTime newintime = DateTime.Parse(Request["intime"].ToLongTimeString()); //change here
DateTime newouttime = DateTime.Parse(Request["out_time"].ToLongTimeString());// here also
model =  db.bookm.Where(x=>x.intime>= newintime && x.out_time <= newouttime ).First();

```

user ToLongTimeString();