In case of strings, check an example:
DateTime LastNotificationDate = DateTime.Parse( "4/22/2023 11:00:00 AM", CultureInfo.InvariantCulture );
However, the values should be stored using date and time types (datetime or datetime2, for example). LastNotificationRecord.Value should be a DateTime. Parsing should be avoided.