How can i retrive a text from a custom field

I’m not certain what an empty get_field returns, as it’s from a plugin.

However, assuming it provides FALSE or an empty string:

<?php
$data = get_field( 'data_nasterii' );
echo ( $data ? date( "d/m/Y", strtotime( $data ) ) : 'N/A' );
?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)