Forum Groups
  All forums
    Help & Feedback
      Questions
      Work in progress
      Finished Art
      Non-Max related
    Community
      Offtopic
      News
    Hardware
    Photography


Featured Threads
  Speedmodeling 2011 - Holidays Edition
(117 replies)
  Maxforums Kiva Group
(57 replies)
  The Life of a Sea Turtle - Tutorial by mrgrotey
(121 replies)
  So what are you working on? =)
(2620 replies)
  Want free webspace?
(20 replies)
  spam alert!!!
(3918 replies)
  Maxforums member photo gallery index
(113 replies)
  Maxforums Member Tutorials
(86 replies)
  three cheers to maxforums...
(185 replies)
  The Grotorial Index Page
(57 replies)
  101 Things you didnt know in Max...
(185 replies)
  A Face tutorial from MDB101 :D
(95 replies)
  Free textures thread
(77 replies)
  Maxforums.org Members Gallery
(486 replies)
  SON OF POST YOURSELF
(626 replies)
  Dub's Maxscript Tutorial Index
(119 replies)
  The Best Art of Maxforums [56k warning]
(109 replies)


C# question
show user profile  mathias-soeholm
Hey guys, any c# programmers here?

I wast just wondering how I can get the current time as an int..
Like current time 17:45 --> 1745
so it's HHMM


Website - Twitter
ClearCut Games

read 296 times
2/8/2010 1:56:48 AM (last edit: 2/8/2010 1:56:48 AM)
show user profile  mathias-soeholm
Nevermind just found it..

int currentTime = Int32.Parse(lblTime.Text = DateTime.Now.ToString("hhmm"));


Website - Twitter
ClearCut Games

read 277 times
2/8/2010 3:02:17 AM (last edit: 2/8/2010 3:02:17 AM)
show user profile  gogodr
you can do it like this

int HHMM;

HHMM = DateTime.Hour * 100 + DateTime.Minute;

read 275 times
2/8/2010 3:03:10 AM (last edit: 2/8/2010 3:03:10 AM)
#Maxforums IRC
Open chat window


Support Maxforums.org