Date Field Generating Null Value

Hi,

I have a time field and a date field with system date as initial values and i can see the current time and date as their values. The time field works well but not the date field. When echoing or printing or using in computations it’s value, the result is null.