private async Task OrderTodayTimeApply_Entry(String time) { var now = DateTime.Now; var parsedTime = DateTimeParser.ParseTime(time); var datetext = $"{now:yyyy-MM-dd} {parsedTime}"; this.dateTime = DateTime.ParseExact(datetext, "yyyy-MM-dd HH:mm", CultureInfo.InvariantCulture); }
private Boolean IsValidTime(String time) { return(DateTimeParser.ParseTime(time) != null); }