Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 22nd, 2006, 02:50 AM
Authorized User
 
Join Date: Aug 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Years to Months Conversion

Hi
I am working on ASP.NET 2.0 and C#. I am developing one application in
which I have one field as Work Experience. For that I have 2 dropdown
menus, one for year and other one for month. I want to convert overall
work experience in total number of months. I have single column in DB
as work experience. I have idea that what i am supposed to do but dont
know how exactly to implement.
suppose i am choosing Year=2 and Months=6
then it will be
2*12+6=30 months. so 30 value i have to send to DB.
Please assist me to do so....
Regards
Raghav Mahajan


 
Old September 22nd, 2006, 09:45 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there..

that's correct.. what's your problem with the implementation??

HTH

Gonzalo
 
Old September 25th, 2006, 11:43 PM
Authorized User
 
Join Date: Aug 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
I was not sure with implementation. But I have done it.
Thanks
Raghav






Similar Threads
Thread Thread Starter Forum Replies Last Post
date conversion in years, months and days naveed77 Beginning VB 6 0 January 2nd, 2008 01:18 AM
adding years to date Israr JSP Basics 1 March 23rd, 2007 07:56 AM
DateDiff calculation for Years, Months & Days demivolt ASP.NET 1.0 and 1.1 Professional 6 October 14th, 2006 12:14 AM
Query by years anukagni Access 3 September 6th, 2006 06:11 AM
Pull years from date field kev_79 Access 2 August 2nd, 2004 01:49 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.