locked
Convert.ToString() formatting RRS feed

  • Question

  • User379720387 posted

    I can do this with ToString("yyyyMMdd")

    But how does this work with Convert.ToString?

    Convert.ToString(Session["rprtEndBefore"], "yyyyMMdd")

    Friday, June 10, 2016 5:10 PM

Answers

  • User1289604957 posted

    Hi,

    Convert.ToDateTime(Session["rprtEndBefore"]).ToString("yyyyMMdd");

    Hope that could help you!

    Best,

    Maher

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, June 12, 2016 9:26 PM