Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

DateTime field

$
0
0

I have a question. Why SharePoint datetime field display today date although the item column it empty? How to solve this problem. Here is my code

if (cItem != null && cItem["DateSitePickup"] != null)
        dtSitePickupDate.SelectedDate = (DateTime)cItem["DateSitePickup"];

The item column "cItem["DateSitePickup"]" is empty. It seems do not run this code. But the control "dtSitePickupDate" show today's date (change every day).

Please help me out. Many thanks.


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>