.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

showing of reports in grid view reg

Posted By: Gowthammanju     Posted Date: May 27, 2011    Points:5   Category :ASP.Net
Hi,

can any one give me some tips regarding showing

1)monthly report:
It is in which the current month must be taken automatically from the today date and show the result in grid view

2)weekly report:
It is in which the current week by subracting 7 days from today date must be taken automatically and show the result in grid view



regards,
gowtham

Responses
Author: Maverick             
Posted Date: May 27, 2011     Points: 20   

Hello,

You can use datetime.now for getting the the current date automatically and then can use
datetime.adddays or datetime.addmonths to do the second task.

Hope it helps.

Thanks,
Maverick
Author: Gowthammanju             
Posted Date: May 27, 2011     Points: 20   

ya thanks,
its is the easiest way which i know it
my question is: i am using gettype() function to get datetime which includes both date with time.

can u provide me solution for this

waiting for ur responces




Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: Maverick             
Posted Date: May 29, 2011     Points: 20   

Hello,

You can do datatime.toshortdatestring() to get only date part.

Hope it helps.

Thanks,
Maverick


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend