Users Pricing

forum

Home Forums How to check if a DateTime field is not null or empty? – MindStick

How to check if a DateTime field is not null or empty?

Anonymous User 24845 01 Apr 2014

I am very new in C# and I have a doubt.

In an application on which I am working I found something like it in the code:

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

This code simply check if the nome 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?


3 Answers

Pravesh Singh 10 Apr 2014 Accepted Answer
Markdown for AI

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

Open .md