I have need of different query for date in C#.
Thanks In Advance,
Chaitali
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Jun 20, 2013, 7:19 AM
you can use like below
var current = DateTime.Now;
var currentDate = DateTime.Now.Date;
var currentYear = DateTime.Now.Year;
var currentMonth = DateTime.Now.Month;
var currentDay = DateTime.Now.Day;
Iftikar
Remember to click "Mark as Answer" on the post, if it helps you.
Sunny SharmaPosted Jun 20, 2013, 7:15 AM
Ravi ShekharPosted Jun 20, 2013, 6:49 AM
which type of date query you want??? do clear.