datetime

  1. S

    remove zero before single digit in DateTime

    Hi there, i am currently working on .Net application which is using Optimizely to render the website. At the moment the date picker that is being used returns a 0 when selecting a day which has a single digit: The code which formats the date can be found below: public static string...
  2. S

    subtracting minutes from a DateTime

    Can anyone help me subtracting minutes from a DateTime public DateTime AddMinutes(double value); if (connection.Value.Disconnected > DateTime.Now - AddMinutes(AppConfig.current.DisconnectTimerMins)) { } Can anyone help me with this? Thanks
Back
Top Bottom