using System.DateTime

Hello everyone,
I used system.DataTime and it gives me the following error:

‘DateTime’ does not contain a definition for ‘ToLongTimeString’ and no extension method ‘ToLongTimeString’ accepting a first argument of type ‘DateTime’ could be found (are you missing a using directive or an assembly reference?)

Does anyone know how I can know the data referring to the date and time of the hololens that are running the application?

Thanks a lot.

Did you create a method to process the data into a string?

There’s a long list of available methods in that doc with example code. Feel free to post your script example and we can take a look.

1 Like

To long time string was the problem. Thank you!!