Date.Now

Discussion in 'Site Programming, Development and Design' started by 0010610, Apr 7, 2011.

  1. Hi

    Can someone tell me what date.now looks like on your servers? I am based in the UK and I have code on a site that reads the substring of date.now.tostring to convert it into days hours mins etc.

    Everytime I upload the site I get an "Input string was not in a correct format" error. It always works on a UK machine.

    Many thanks

    Danny
     
  2. Ray

    Ray

    We are in the US continent and our date format is mm/dd/yyyy
     
  3. Thanks Ray, could you give me an example of what the string return of date.now looks like? The stack trace of the error I have is telling me that a value found from date.now is "PM". Is that true?

    This is the reason I would like to see what date.now.tostring looks like.

    Cheers

    D
     
  4. FredC

    FredC Winhost Staff

    What line causes the error?

    you know you can pull different parts of the date.now(), eg. date.now().year
     

Share This Page