title: I want to read from the command line in a .net console application and using r.net package i want to use that data for R
body: <pre><code>     REngine.SetEnvironmentVariables(); 
       REngine engine = REngine.GetInstance();
       engine.Evaluate("load('~/Shiny.RData')");
       Console.WriteLine("Enter Date:");
       String date1 = Console.ReadLine();
       engine.Evaluate("date&lt;-as.character(" + date1+ ")");
       var date_in_r = engine.Evaluate("date").AsCharacter()[0];
       engine.Evaluate("weekno&lt;-strftime(as.POSIXlt(date),'%w')");
  </code></pre>
  
  <p>The problem here is taking the input for date. I'm very new with the .net and c# . I tried to get the data inside the date input for the date was 2014-10-10. but the value in date inside R was 1993. I'm confused about it.</p>