Tip/Trick gone
-
Hi, just a question, i created a small tip yestarday (3 lines of code), and it got pending status, and now i don't see it any more under my tips. I can see only one tip, but it should be two of them. Is it possible that moderator found it useless? Well, the tip sure was small, it contained 3 lines of code which are used to find first date of week - but since it was different than those found on other places (using while) i thought it could be usefull to other people. This is how tip looked like:
Private Function FirstDayOfWeek(ByVal dayInWeek As Date) As Date ' Calculate difference between specified date days of week and first day of week Dim Days As Integer = dayInWeek.DayOfWeek - CurrentCulture.DateTimeFormat.FirstDayOfWeek ' Add day difference to number of days in week then devide sum with days in week, reminder is number of days we need to substract Days = (7 + Days) Mod 7 ' Substract difference of days from specified date Return dayInWeek.AddDays(-Days) End Function
It sure is small, but is it really useless?
-
Hi, just a question, i created a small tip yestarday (3 lines of code), and it got pending status, and now i don't see it any more under my tips. I can see only one tip, but it should be two of them. Is it possible that moderator found it useless? Well, the tip sure was small, it contained 3 lines of code which are used to find first date of week - but since it was different than those found on other places (using while) i thought it could be usefull to other people. This is how tip looked like:
Private Function FirstDayOfWeek(ByVal dayInWeek As Date) As Date ' Calculate difference between specified date days of week and first day of week Dim Days As Integer = dayInWeek.DayOfWeek - CurrentCulture.DateTimeFormat.FirstDayOfWeek ' Add day difference to number of days in week then devide sum with days in week, reminder is number of days we need to substract Days = (7 + Days) Mod 7 ' Substract difference of days from specified date Return dayInWeek.AddDays(-Days) End Function
It sure is small, but is it really useless?
I don't think it's useless, but the name is a little bit misleading. When I glanced at this here, I thought you were merely recreating the FirstDayOfWeek method, rather than one that identifies the first day of week based on a particular date. Repost it as a Tip/Trick with a slightly different name.
I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be
Forgive your enemies - it messes with their heads
-
I don't think it's useless, but the name is a little bit misleading. When I glanced at this here, I thought you were merely recreating the FirstDayOfWeek method, rather than one that identifies the first day of week based on a particular date. Repost it as a Tip/Trick with a slightly different name.
I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be
Forgive your enemies - it messes with their heads
Thank you for your response, i see your point and i agree that title is a bit confusing. I will post a new one with different name and with better description, even better i will steal your description of code (identifies the first day of week based on a particular date). :laugh: But i think that user should get some response like, your tip/trick was deleted and a reason for such action, since i did not understand what happened, i was not sure it got deleted, or was stuck somewhere or something like that.
-
Thank you for your response, i see your point and i agree that title is a bit confusing. I will post a new one with different name and with better description, even better i will steal your description of code (identifies the first day of week based on a particular date). :laugh: But i think that user should get some response like, your tip/trick was deleted and a reason for such action, since i did not understand what happened, i was not sure it got deleted, or was stuck somewhere or something like that.
Are you sure it's been deleted? Have a word on the suggestions forum, and see if anyone knows there.
I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be
Forgive your enemies - it messes with their heads
-
Hi, just a question, i created a small tip yestarday (3 lines of code), and it got pending status, and now i don't see it any more under my tips. I can see only one tip, but it should be two of them. Is it possible that moderator found it useless? Well, the tip sure was small, it contained 3 lines of code which are used to find first date of week - but since it was different than those found on other places (using while) i thought it could be usefull to other people. This is how tip looked like:
Private Function FirstDayOfWeek(ByVal dayInWeek As Date) As Date ' Calculate difference between specified date days of week and first day of week Dim Days As Integer = dayInWeek.DayOfWeek - CurrentCulture.DateTimeFormat.FirstDayOfWeek ' Add day difference to number of days in week then devide sum with days in week, reminder is number of days we need to substract Days = (7 + Days) Mod 7 ' Substract difference of days from specified date Return dayInWeek.AddDays(-Days) End Function
It sure is small, but is it really useless?
Hi Enver, 1. I can see your tip here[^], it is still awaiting approval. 2. I'd change the title to something like: find first day of week containing given date. 3. I think it is OK, however it is hardly original. I provided a similar technique as an alternative here[^]. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
-
Hi Enver, 1. I can see your tip here[^], it is still awaiting approval. 2. I'd change the title to something like: find first day of week containing given date. 3. I think it is OK, however it is hardly original. I provided a similar technique as an alternative here[^]. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
Hi, 1. This is the new one i created, old one is really gone, lost in cyber universe :) 2. This was my second attempt of title, as soon as i find edit button on tip/trick i will change title again. 3. Yes indeed, our concepts seem to be the same. :( Anyhow thanks for feedback.
-
Hi, 1. This is the new one i created, old one is really gone, lost in cyber universe :) 2. This was my second attempt of title, as soon as i find edit button on tip/trick i will change title again. 3. Yes indeed, our concepts seem to be the same. :( Anyhow thanks for feedback.
you're welcome. To edit a tip/trick title start by clicking the "improve tip/trick" widget. Then look for the first edit box, labeled "subject". :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.