ASP.NET

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentASP.NET

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old December 11th, 2012, 08:54 PM
baijuep baijuep is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 4 baijuep User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 47 sec
Reputation Power: 0
Date calculation

i have a web in asp.net and code using is vb and database is MS access. there is a field named FROM(date field). i want to calculate how much months did a staff worked in an appointment(FROM and current date difference and convert it into months)

my database is MS access

the field name of date is FROM

code i used is

datediff('D', [from], NOW()) AS TEN

i want to calculate how much months did a staff worked in an appointment

the same function which i used in my SQL database web was

DATEDIFF(DAY, TOS, GETDATE())/30 AS TEN

and that works fine

Reply With Quote
  #2  
Old April 30th, 2013, 09:08 AM
annaharris annaharris is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Apr 2013
Posts: 27 annaharris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 21 m 28 sec
Reputation Power: 0
The code that you have shared, worked fine. Thanks a lot.

Reply With Quote
  #3  
Old May 4th, 2013, 08:37 AM
annaharris annaharris is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Apr 2013
Posts: 27 annaharris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 21 m 28 sec
Reputation Power: 0
Is it just the only way to calculate the date ? Is there any other optimized way to implement it.

Reply With Quote
  #4  
Old May 6th, 2013, 09:01 AM
annaharris annaharris is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Apr 2013
Posts: 27 annaharris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 21 m 28 sec
Reputation Power: 0
It is quite hard to understand that why these server variables are coming out with Null values, this seems to be complicated.

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentASP.NET > Date calculation


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap