Users Pricing

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 User 2037 10 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?


I am a content writter !


1 Answers