help me? Your MqlDateTime line only declares the structure and you need another command such as TimeCurrent to populate it. This is documented in the MQL5 editor help. MqlDateTimehari;TimeCurrent(hari);Print("Day of Week =",hari.day_of_week);Print("Hour =",hari.hour); Paul