HEELPBOOK - Visual Basic - Extracting hours, minutes and seconds from System Time ########################################### ######### SCENARIO I needed to extract the current hours, min and sec from the System time and store it in 3 variables - h, m and s. ######## SOLUTION h = Format(Time, "HH") m = Format(Time, "NN") s = Format(Time, "SS") HEELPBOOK STAFF: to extract correctly minutes from System date you will have to use NNand not MM. ############ ARTICLE INFO ############# Article Month: July Article Date: 16/07/2012 Permalink: http://heelpbook.altervista.org/2012/visual-basic-extracting-hours-minutes-and-seconds-from-system-time/ Source: http://www.vbforums.com/showthread.php?t=144082 Language: English View more articles on: http://www.heelpbook.net/ Follow us on Facebook: http://it-it.facebook.com/pages/HeelpBook/100790870008832 Follow us on Twitter: https://twitter.com/#!/HeelpBook Follow us on RSS Feed: http://feeds.feedburner.com/Heelpbook Follow us on Delicious: http://delicious.com/heelpbook Linkedin: http://it.linkedin.com/pub/stefano-maggi/27/73a/b20