Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
Hello,
I need to convert dates from Tue Nov 24 14:36:20 CET 2009
to something like 24.11.2009
Date and date# is not working as expected...
Any ideas?
Thanks in advance,
Eva
.png) 
					
				
		
 Miguel_Angel_Ba
		
			Miguel_Angel_BaHello Eva,
Unless any other has some cleaner (and above all, shorter) expression, I'd do some cleanup to get the proper timestamp:
=Date(Date#(Right(Replace('Tue Nov 24 14:36:20 CET 2009', Mid('Tue Nov 24 14:36:20 CET 2009', Index('Tue Nov 24 14:36:20 CET 2009', ' ', -2), Len('Tue Nov 24 14:36:20 CET 2009') - Index('Tue Nov 24 14:36:20 CET 2009', ' ', -1)), ''), Index('Tue Nov 24 14:36:20 CET 2009', ' ', -2)), 'MMM DD hh:mm:ss YYYY'), 'DD.MM.YYYY')I'm likely missed some commas or closed parentheses.
.png) 
					
				
		
 Miguel_Angel_Ba
		
			Miguel_Angel_BaHello Eva,
Unless any other has some cleaner (and above all, shorter) expression, I'd do some cleanup to get the proper timestamp:
=Date(Date#(Right(Replace('Tue Nov 24 14:36:20 CET 2009', Mid('Tue Nov 24 14:36:20 CET 2009', Index('Tue Nov 24 14:36:20 CET 2009', ' ', -2), Len('Tue Nov 24 14:36:20 CET 2009') - Index('Tue Nov 24 14:36:20 CET 2009', ' ', -1)), ''), Index('Tue Nov 24 14:36:20 CET 2009', ' ', -2)), 'MMM DD hh:mm:ss YYYY'), 'DD.MM.YYYY')I'm likely missed some commas or closed parentheses.
 
					
				
		
Hi Miguel,
it works 🙂 thanks a lot for your help!
Regards,
Eva
 
					
				
		
 suniljain
		
			suniljain
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Replace String By Your Field Name
=Date(Makedate(Trim(subfield('Tue Nov 24 14:36:20 CET 2009',' ',6)), Num(Month(date#(subfield('Tue Nov 24 14:36:20 CET 2009',' ',2),'MMM'))), Trim(subfield('Tue Nov 24 14:36:20 CET 2009',' ',3))),'DD.MM.YYYY')
 
					
				
		
 rwunderlich
		
			rwunderlich
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		How about
=date(
 date#(
 subfield('Tue Nov 24 14:36:20 CET 2009',' ',2)
 & subfield('Tue Nov 24 14:36:20 CET 2009',' ',3)
 & subfield('Tue Nov 24 14:36:20 CET 2009',' ',6)
 ,'MMMDDYYYY')
)
