OpenNTF.org - Date as text
My Links (Not logged in)
Code Bin Search
 
Hosted by Prominic.NET
Rate This Code
5 - brilliant stuff
4 - very nice
3 - average
2 - needs work
1 - bad
   OpenNTF Code Bin
About This Code
Brief Description:
Date as text 
Rating:
Not Rated Yet 
Contributor:
Bernd Hort 
Category:
Lotus Formula 
Type:
Date/Time functions 
Last Modified:
05 Jul 2007 
OpenNTF Disclaimer

All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.

Code / Description
_date := date;


_year := @Text(@Year(_date));
_month := @If(@Month(_date)<10; "0"; "") + @Text(@Month(_date));
_day := @If(@Day(_date)<10; "0"; "") + @Text(@Day(_date));

_hour := @If(@Hour(_date)<10; "0"; "") + @Text(@Hour(_date));
_minute := @If(@Minute(_date)<10; "0"; "") + @Text(@Minute(_date));
_second := @If(@Second(_date)<10; "0"; "") + @Text(@Second(_date));

@Trim(
@If(
@Year(_date) != -1;
_day + "." + _month + "." + _year;
"") + " " +
@If(@Hour(_date) != -1;
_hour + ":" + _minute + ":" + _second;
"")
)

Usage / Example
 Comments

No documents found

 Add your comment!