I am reading a file that has two parameters, a date ("Janury 3, 2010" for example) and a constant. Below is part of the program I wrote.
FVDate1 = "January 3, 2010". It is the line with //************ in it. Why will it not work and what do I need to do to correct this?
FVDate1 = "January 3, 2010". It is the line with //************ in it. Why will it not work and what do I need to do to correct this?
PHP Code:
var f = new File( "FVeSignal.txt" );
if( f.exists() ) {
f.open( "rt" );
var FVDate;
var FVDate1;
var FV1;
var FV;
while( !f.eof() ) {
FVDate1 = f.readln();
FV1 = f.readln();
ee = new Date()
FVDate = ee.Date.parse(FVDate1) //************
if(FVDate == TodayDate) {
FV = FV1;
break;
}
}
f.close();
Comment