View Full Version : How to Create Expiration Date
NewsArchive
05-06-2014, 06:52 AM
Hello,
I have looked at the Expiration Date Checking example and I'm just not
getting it.
I want to create a date that is 30 days after the date that my software is
installed.
I may have to display that date in a readable format yyyymmdd or mm/dd/yyyy
..
I have tried %SomeDate% + 30 but I'm getting werid numbers (they look
similar to Clarion Longs).
Any help would be appreciated,
Don
NewsArchive
05-06-2014, 06:52 AM
Hi Don,
> I have looked at the Expiration Date Checking example and I'm
> just not getting it.
>
> I want to create a date that is 30 days after the date that my
> software is installed.
>
> I may have to display that date in a readable format yyyymmdd
> or mm/dd/yyyy ..
>
> I have tried %SomeDate% + 30 but I'm getting werid numbers (they
> look similar to Clarion Longs).
>
> Any help would be appreciated
I have developed a demo for you (see attached screenshot and the link to the
project).
The demo retrieves the current date (YYYYMMDD), converts it to a Julian date
(to performing arithmetic), then adds 30 days and converts it back to your
Gregorian date.
http://www.lindersoft.com/projects/30days.zip
Does this help?
Friedrich
NewsArchive
05-06-2014, 09:41 AM
Awesome! That does help.
The "Increment" function was what I was missing.
THANKS!!
Don
NewsArchive
05-06-2014, 09:41 AM
> Awesome! That does help.
>
> The "Increment" function was what I was missing.
>
> THANKS!!
You are very welcome, Don :)
Friedrich
NewsArchive
05-06-2014, 09:41 AM
Should read "...to perform arithmetic..."
Friedrich
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.