J Junctbr Member Dec 3, 2018 #1 Can I ask how to put the exact date and time in a label when im starting the program?
R ronell Well-Known Member Licensed User Longtime User Dec 3, 2018 #2 B4X: Sub Activity_Create(FirstTime As Boolean) DateTime.DateFormat = "MM/dd/yyyy" DateTime.TimeFormat = "HH:mm:ss" lbldate.text = DateTime.Date(DateTime.Now) lbltime.text = DateTime.Time(DateTime.Now) End Sub Upvote 0
B4X: Sub Activity_Create(FirstTime As Boolean) DateTime.DateFormat = "MM/dd/yyyy" DateTime.TimeFormat = "HH:mm:ss" lbldate.text = DateTime.Date(DateTime.Now) lbltime.text = DateTime.Time(DateTime.Now) End Sub
Computersmith64 Well-Known Member Licensed User Longtime User Dec 3, 2018 #3 Use DateTime.Date(DateTime.Now) & DateTime.Time(DateTime.Now). - Colin. Upvote 0
mangojack Expert Licensed User Longtime User Dec 3, 2018 #4 In the future .. try to make your thread Title more meaningful ... It should be a Concise Summary of your Thread Question. Also this might be of interest to you... Date Format Abbreviations & Examples ... Upvote 0
In the future .. try to make your thread Title more meaningful ... It should be a Concise Summary of your Thread Question. Also this might be of interest to you... Date Format Abbreviations & Examples ...