In your own word learning program, you need to get the start time and end time of a day. After searching, it is easier to use a string for conversion:
Private Static void start and end time of a day (datetime on which day, out datetime start time, out datetime End Time) {var date = which day. date; Start time = convert. todatetime (datetime. now. tostring ("yyyy-mm-dd 00:00:00"); deadline = convert. todatetime (datetime. now. tostring ("yyyy-mm-dd 23:59:59");} this can be used
Public static list <string> get the single phrase of a day (datetime on which day) {datetime start time; datetime end time of a day (which day, out start time, out deadline); Return gets the non-repeated word group (start time, end time );}
If you do not use a word group that is not repeated (datetime on which day), you may obtain the word group on the afternoon or in a certain time period. This is more accurate!