Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed May 23, 2018 7:22 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: SQLDate
PostPosted: Tue Apr 02, 2013 2:55 am 
Offline

Joined: Tue Aug 29, 2006 4:04 am
Posts: 513
Location: Indonesia
Hi,

I want to print date. its calculation of defined date plus 30 days.
is it possible to use SQLdate to do this ? in LR mentioned that the SQLDate format should be YYYYMMDD. But my format is fixed DDMMMYYY.


thanks

Regards,
Rivo


Top
 Profile  
Reply with quote  
 Post subject: Re: SQLDate
PostPosted: Tue Apr 02, 2013 4:55 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
dim d as new date // set to now
d.month = d.month + 1
or
d.day = d.day + 30

and you changed the value.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: SQLDate
PostPosted: Tue Apr 02, 2013 5:26 am 
Offline

Joined: Tue Aug 29, 2006 4:04 am
Posts: 513
Location: Indonesia
d.day = d.day + 30

I have use the same code with u. but my question is, if I print the date not these day/ a month before. this is showing the bad result.

here is my goals.

I want to create term of payment based from date (DDMMMYYYY).
when the user is delay for 30 days, I can easily do d.day=d.day+30 if I print it on the same day. What if I print it on the next day and I wanted the result is the same.? Because I'm also print the date line of payment in there too.


thanks

Regards,
Rivo


Top
 Profile  
Reply with quote  
 Post subject: Re: SQLDate
PostPosted: Tue Apr 02, 2013 5:58 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
You may need to create copy of dates.

dim d as new date(otherDate)

so clone it, so you modify a copy.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group