Combine date and time when date is a DateTime and time is a string

前端 未结 5 824
终归单人心
终归单人心 2021-02-03 18:12

I am working with an old mysql database in which a date is stored (without a time) as a datetime and a time is stored as a string (without a date).

In C# I then have a D

5条回答
  •  失恋的感觉
    2021-02-03 18:31

    I think you're worrying about the string conversion too much. By combining the 2 string elements together you are saving further date string parsing anyway which will most likely be more expensive.

    Is this going to be repeated a lot of times or a simple step in a larger process?

提交回复
热议问题