datetime question

 

Hi i need a bit of help

 

I m trying to program an indicator that makes calculations of the bars, but starting every time from the beggining of every day til the current moment. 

 

for example starting date : datetime date = D'2013.01.25 00:00:00';. 

 

the problem is that i want this done automatically,so the starting date must change every day, 

 

can somebody help? 

 
ITS RESOLVED.
 

Care to share the code ?

<please use SRC button to post the code>