Advanced Installer Community - Search

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Search found 3 matches

Go to advanced search

by SKArcade
Tue Mar 19, 2013 4:32 am
Forum: Common Problems
Topic: Compute Release Date
Replies: 3
Views: 2293
 
Jump to post

Re: Compute Release Date

This seems to do the trick...

Code: Select all

int YEAR_OFFSET = 9;
int MONTH_OFFSET = 5;

int releaseDate = ((DateTime.Today.Year - 1980) << YEAR_OFFSET) +
                  (DateTime.Today.Month << MONTH_OFFSET) + 
                  DateTime.Today.Day;
by SKArcade
Mon Mar 18, 2013 4:00 am
Forum: Common Problems
Topic: Compute Release Date
Replies: 3
Views: 2293
 
Jump to post

Re: Compute Release Date

Actually, I have managed to convert the code to C#, but my problem now is that this is for converting the ReleaseDate into year/month/day values, but I need help to go the other way.

int releaseDate = 17010;

int YEAR_MASK = 0xFE00;
int YEAR_OFFSET = 9;

int MONTH_MASK = 0x01E0;
int MONTH_OFFSET ...
by SKArcade
Mon Mar 18, 2013 3:45 am
Forum: Common Problems
Topic: Compute Release Date
Replies: 3
Views: 2293
 
Jump to post

Compute Release Date

Hi there,

I was wondering if anyone could help? I found this post - http://www.advancedinstaller.com/forums/viewtopic.php?f=2&t=8744&start=0

This answers what I need to do, but unfortunately I do not understand the code. Can someone please give me some C# code to translate today's date into the ...

Go to advanced search