The Daily Click ::. Forums ::. Klik Coding Help ::. Calendar object
 

Post Reply  Post Oekaki 
 

Posted By Message

Akai_R



Registered
  16/04/2008
Points
  436
12th September, 2013 at 12/09/2013 22:38:15 -

Hello!

I'm trying to get how many years, months, days has passed from a certain date up til today using the calendar object.
I can get how many seconds have passed by using this expression: Date Diff( "Calendar Object", >start date<, >end date< ) but I can't use that to get years and months...

If I try "YearsD( "Calendar Object", 52185600, "2012-01-17")", which, firstly, is the amount of seconds passed since 2012-01-17, which I also put in there, I get "0"...
I don't know, I must be doing something wrong because that just two ways of writing the same thing, but I can't think of a solution! Please help

 
______
http://akai-r.com/

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
12th September, 2013 at 12/09/2013 23:58:21 -

I think you might be better off with the TimeStamp extension...

 
n/a

Akai_R



Registered
  16/04/2008
Points
  436
13th September, 2013 at 13/09/2013 00:46:42 -

Wow, that was a lot easier! It's working perfectly now.
Thank you Sketchy!

 
______
http://akai-r.com/
   

Post Reply



 



Advertisement

Worth A Click