What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 10543 |  Welcome, Guest!   Register  Login
 Home > Forums > C# > How to get the in between date from the months using c#.net ...
Kavi.Sirius

How to get the in between date from the months using c#.net

Replies: 4 | Posted by: Kavi.Sirius on 5/22/2012 | Category: C# Forums | Views: 347 | Status: [Member] | Points: 10  


hi,

i have problem to get the inbetween dates between the months,

for example,

table design:

employee fromdate Todate
kavi 05-1-2012 07-1-2012 (mm-dd-yyyy)

means

Actually the employee kavi apply the leave between those above days.that particular leaves are approved.

if employee kavi again apply the leave between these dates 05-1-2012 to 07-1-2012
they didt allow to apply the leave,because their is already the leave record for particular months



example
i kavi apply the leave between these dates 05-10-2012 to 06-06-2012 means
they didt allow,

i need to check the dates for particular employee is applied or not between before applied dates in database

some one help to get the dates between the months

Thanks in advance..

Regards
Kavi.n


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Fool2code
Fool2code  
Posted on: 5/23/2012 8:44:33 AM
Level: Starter | Status: [Member] | Points: 25

So are you doing this on SQL side or c# side. Post some code where you want to do this.

By my view it can be done on both sides easily but since your business logic should be a part of C# . so it should be done at front end only.

Depends on your choice , post the code and will provide a solution.

Kavi.Sirius, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Sekar.C
Sekar.C  
Posted on: 5/24/2012 6:32:39 AM
Level: Starter | Status: [Member] | Points: 25

Hi Kavi,
send your coding lines first i see then give to idea.

Regards
Sekar.c

Kavi.Sirius, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Kavi.Sirius
Kavi.Sirius  
Posted on: 5/24/2012 6:35:46 AM
Level: Starter | Status: [Member] | Points: 25

hi sekar,

i got the solution for that query,
thank you for reply

Regards
Kavi.n

Kavi.Sirius, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Sekar.C
Sekar.C  
Posted on: 5/24/2012 8:15:25 AM
Level: Starter | Status: [Member] | Points: 25

Congratulation .

Regards
Sekar.c

Kavi.Sirius, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

Found interesting? Add this to:


 Latest Posts

Write New Post | More ...

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/25/2013 12:08:50 PM