HOw to get date and time
Moderators: JRL, Dorian (MJT support)
HOw to get date and time
How do I get datetime in MS so that I can insert the value into my MSSQL fieldtype datetime. I understand MS only has getdate and gettime not getdatetime
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Use the Year, Month, Day, Hour, Min and Sec functions to extract each part of the date and time and format according to your requirements. E.g.:
Code: Select all
Year>yyyy
Month>mm
Day>dd
Hour>hh
Min>nn
Sec>ss
Let>FormattedDateTime=%yyyy%-%mm%-%dd% %hh%:%nn%:%ss%
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?