Users Pricing

forum

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

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

Anonymous User 2117 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?


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md