i want to convert total time of the employee into hours i m trying with “DateTime.ParseExact(strTotalTime,arstrFormats, New CultureInfo(“en”), DateTimeStyles.None).ToString(“H\h”)”
Error ERROR Validation Error Compiler error(s) encountered processing expression “(DateTime.ParseExact(strTotalTime, arstrFormats, CultureInfo.InvariantCulture, DateTimeStyles.None)-Now.Date).TotalHours.ToString”.
‘CultureInfo’ is not declared. It may be inaccessible due to its protection level.
‘DateTimeStyles’ is not declared. It may be inaccessible due to its protection level. Main.xaml