Implements System.ISpanFormattable.
Definition at line 516 of file DateOnly.cs.
517 {
519 {
521 }
523 {
525 {
526 case 'O':
527 case 'o':
529 {
530 charsWritten = 0;
531 return false;
532 }
533 charsWritten = 10;
534 return true;
535 case 'R':
536 case 'r':
538 {
539 charsWritten = 0;
540 return false;
541 }
542 charsWritten = 16;
543 return true;
544 case 'D':
545 case 'M':
546 case 'Y':
547 case 'd':
548 case 'm':
549 case 'y':
551 default:
552 charsWritten = 0;
553 return false;
554 }
555 }
556 if (!DateTimeFormat.IsValidCustomDateFormat(
format, throwOnError: false))
557 {
558 charsWritten = 0;
559 return false;
560 }
562 }
DateTime GetEquivalentDateTime()
References System.DateOnly.Day, System.destination, System.format, System.DateOnly.GetEquivalentDateTime(), System.DateTimeFormat.IsValidCustomDateFormat(), System.DateOnly.Month, System.DateTimeFormat.TryFormat(), System.DateTimeFormat.TryFormatDateOnlyO(), System.DateTimeFormat.TryFormatDateOnlyR(), and System.DateOnly.Year.