NI Home > Community > NI Discussion Forums

LabVIEW Web UI Builder and Data Dashboard

Showing results for 
Search instead for 
Do you mean 
Posts: 9

Current Date in WebUI

I recently had to get the current date (could be quite easily expanded to time also I believe) and found a solution I thought I would post incase someone has this problem.


It means you don't have to use a webservice like this tutorial suggests:


The trick is using pythons datetime class.  I find a lot of cool basic functions can be used this way.  Here is the code that is run when the stop button is pressed:

from datetime import date

Innoventor Inc. "The Original Idea People"
Posts: 185

Re: Current Date in WebUI

Hi jdaming,


Very cool!


You might consider posting this in the NI Community as Example Code.


Have a great day,


Chris V

Applications Engineer
National Instruments