4

I have been using different Sharepoint.Client nuget packages because of different framework targets and I am unable to find any resource describing the differences between them.

But more importantly some are missing SPUtility class. Seems like a shoddy design but has some useful methods like the one I am using

SPUtility.CreateISO8601DateTimeFromSystemDateTime(DateTime)

My question is does anyone know where I should be looking for the same functionality or is it dead and buried?

Thor
  • 498
  • 1
  • 6
  • 15

1 Answers1

3

The same can be achieved with

DateTime date = DateTime.Now;
date.ToString("yyyy-MM-ddTHH:mm:ssZ");

But leaving this open for a day because I would like a more complete answer, fx. if the same ISO format resides in the library elsewhere or if anyone has a better way of passing universal DateTime data to SP.

Thor
  • 498
  • 1
  • 6
  • 15