B4J Question Return the Date without Slashes

Discussion in 'B4J Questions' started by ElliotHC, Jul 30, 2019.

  1. ElliotHC

    ElliotHC Active Member Licensed User

    I need to save a file with the date as the name.. e.g. 2019_07_30.txt but the datetime uses slashes..

    So I get C:\07\30\2019.txt which is obviously not going to work..

    I need to either lose the slashes or use underscores, also I need the year, then month, then day.. Anyone know how to do this?

  2. Erel

    Erel Administrator Staff Member Licensed User

    DateTime.DateFormat = "yyyy-MM-dd"
  3. ElliotHC

    ElliotHC Active Member Licensed User

    Smashing, thanks Erel.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice