2020-05-26
2020-05-27
2020-05-28
2020-05-29
2020-06-01
2020-06-02
2020-06-03
I want the read date to match with current date.
But the match is not happening.
Code: Select all
#EscapeChar `
FormatTime, TimeString,currentdatetime, yyyy-MM-dd
MsgBox The current date (long format) is %TimeString%.
FileRead,File1,Y:\EC_date.txt
i := 0
Loop,Parse,File1, `n
{
i := i + 1
Line1 := A_LoopField
If (Line1 = TimeString )
{
msgbox, i is %i%
Break
}
}
Return