forum

Home / DeveloperSection / Forums / How to validate if a DateTime field is not null / empty?

How to validate if a DateTime field is not null / empty?

Anonymous User170710-Feb-2015

I found something like:

if (!String.IsNullOrEmpty(u.nome))

This code simply check if the name field of the u object is not an empty/null string.

Ok this is very clear for me, but what can I do to check it if a field is not a string but is DateTime object?


Updated on 10-Feb-2015
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By