Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
Hi Guys,
I need to convert my date, (a number like 45302.8333) to date data type, but without the hour.
I using the following. Is there any better way to do it?
Thanks,
Aldo.
Date( num#(PaymentDate) - Frac(PaymentDate), 'DD/MM/YYYY')
 hector
		
			hector
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi, you can use dayname(field), and this will return only the date part
dayname(45302.8333) = 11-01-2024
timestamp(dayname(45302.8333)) = 11-01-2024 0:00:00
So you can see, the decimal part is removed this is something like date(floor(field))
Rgds
 tresesco
		
			tresesco
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi,
If your PaymentDate itself has the numeric values, why can't you simply use: Date(PaymentDate,'DD/MM/YYYY')? fraction would not bother you.
 hector
		
			hector
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi, you can use dayname(field), and this will return only the date part
dayname(45302.8333) = 11-01-2024
timestamp(dayname(45302.8333)) = 11-01-2024 0:00:00
So you can see, the decimal part is removed this is something like date(floor(field))
Rgds
 
					
				
		
Thanks
