Quantcast
Viewing all articles
Browse latest Browse all 8623

Re: how to know the first week of the year is having particular day?

Hi,

     Pass first date say dt = date to fm day_in_week , If  return Value >2 , then their is no tuesday in first week, Get the Difference for Tuesday as df =ReturnValue - 2, Then Add or Substract this df value to first date as

PriceDt = dt - df.

or

PriceDt = dt + df.


Regards

Somendra


Viewing all articles
Browse latest Browse all 8623

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>