Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

'System.DateTime' does not contain a definition for 'ToShortTimeString

Discussion in 'Windows' started by Graph, May 30, 2015.

  1. Graph

    Graph

    Joined:
    Jun 8, 2014
    Posts:
    154
    'System.DateTime' does not contain a definition for 'ToShortTimeString is the error message i get when trying to build a Univeral 8.1 app.. Which is rather weird since you'd expect something like this to be included.

    Any body got a culture sensitive time formatting method(ology) handy?
    Trying to hit the June 1st deadline on the port of my first game *whee*

    In case you're interested.. this one: https://play.google.com/store/apps/details?id=com.GraphIT.Reti
     
  2. Graph

    Graph

    Joined:
    Jun 8, 2014
    Posts:
    154
    in case anyone's interested in future:

    Code (CSharp):
    1. DateTime.Now.ToString("t")