Function that prompts for date input

Function that prompts for date input

I am trying to create custom function that I can use in a report to:
1. Prompt for a date
2. Will mark selected items as "Ordered and Received" on the specified "Order Date"

This works, if I want to set the order for today.  But is there a way that I can modify this so that the function will prompt for date entry?

  1. void SeedOrder.MarkOrdered(int id)
    {
        rec  =  Seed_Order  [ID == input.id];
        rec.Status_of_Order = "Complete";
        rec.Date_of_Order = today;
    }