You've already forked Sonarr
							
							
				mirror of
				https://github.com/Sonarr/Sonarr.git
				synced 2025-10-31 00:07:55 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			426 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			426 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.Linq;
 | |
| using AutoMapper;
 | |
| 
 | |
| namespace NzbDrone.Api.Resolvers
 | |
| {
 | |
|     public class NullableDatetimeToString : ValueResolver<DateTime?, String>
 | |
|     {
 | |
|         protected override String ResolveCore(DateTime? source)
 | |
|         {
 | |
|             if(!source.HasValue)
 | |
|                 return String.Empty;
 | |
| 
 | |
|             return source.Value.ToString("yyyy-MM-dd");
 | |
|         }
 | |
|     }
 | |
| }
 |