: 4582 | 108638 | 12353

add LSUTCTime property to NotesDateTime 
New idea submissions, commenting and voting are no longer available on this site. Logins have also been disabled.
Use this IdeaSpace to post ideas about Domino Designer.

: 15
: 15
: 0
: Domino Designer
: enhancement, lotuscript
: Mike VandeVelde341 27 Oct 2010
:
: / Email
Similar to LSGMTTime and LSLocalTime, it would be nice if it was easier to get a UTC formatted date.
 
(ps It would also be nice to fix LSGMTTime so that it returns a time component when it works out to midnight. This would make writing our own UTC functions, among other things, much less of a pain! If you weren't aware of this, be sure to test for it!)



1) Peter Presnell26659 (11 Nov 2010)
I included the code for this in my DominoFramework project. Your idea would be better as a suggestion to enhance the SSJS class. IBM are unlikely to enhance LS any time soon.

Property Get UTC As String

Dim UTCDayName As String
Dim UTCDay As String
Dim UTCMonth As String
Dim UTCYear As String
Dim UTCTime As String
Dim UTCSign As String
Dim UTCZone As String

If (iDate Is Nothing) Then Exit Property
UTCDayName$ = Format$(iDate.LSLocalTime, "ddd")
UTCDay$= Format$(iDate.LSLocalTime, "dd")
UTCMonth$ = Format$(iDate.LSLocalTime, "mmm")
UTCYear$ = Format$(iDate.LSLocalTime, "yyyy")
UTCTime$ = Format$(iDate.LSLocalTime, "hh:nn:ss")
If Sgn(iDate.TimeZone) < 0 Then UTCSign$ = "-" Else UTCSign$ = "+"
If iDate.TimeZone < 10 Then UTCZone$ = "0" + CStr(Abs(iDate.TimeZone)) Else UTCZone$ = CStr(Abs(iDate.TimeZone))
UTCZone$ = UTCSign$ + UTCZone$ + "00"
UTC$ = UTCDayName$ + ", " + UTCDay$ + " " +UTCMonth$+ " " +UTCYear$ + " " +UTCTime$ + " " + UTCZone$
Exit Property










:
:




Welcome to IdeaJam™


You can run IdeaJam™ in your company. It's easy to install, setup and customize. Your employees, partners and customers will immediately see results.

Use IdeaJam to:

  • Collect ideas from employees
  • Solicit feedback and suggestions from employees and customers
  • Run innovation contests and competitions
  • Validate concepts
  • Use the power of "crowd-sourcing" to rank ideas and allow the best ideas to rise to the top

IdeaJam™ works with:

  • IBM Connections
  • IBM Lotus Quickr
  • Blogs and Wikis
  • Websphere Portal
  • Microsoft Sharepoint
  • and other applications.

IdeaJam has an extensive set of widgets and API's that allow you to extend and integrate IdeaJam™ with other applications.

Learn more about IdeaJam >>


0
Use more customization features in ND9 NotesMail
13
Two-week Calendar view
3
@Formula library
25
Drafts - unsent count?
2
New Hide-When property
3
Activity Logging for Quickr
5
"follow-up complete" flag
15
Remake Resource Reservation template using XPage
6
Boolean operators on LDAP group based access control
17
Store IP Address / remote host data in Password Lockout documents
18
Checking Out-Of-Office status of others
7
DocumentCollection.search(@formula)
23
Tool to show unreferenced design elements for easy cleaup
5
Bring sametime audio and video into the web browser using WebRTC
17
"Window Title" for views
17
QuickR application/widgets for Android/iPhone
21
Create Computed Text with the same text style as the current paragraph
9
@Function and LotusScript to "View..Customize This View" dialog
8
Extend the 'User detail' info of a database
17
Print of calendar in color
6
Shared Actions belong under Shared Elements
20
Facelift all web enabled templates with xPages
3
Please extend WebDAV to include calDAV & cardDAV support for contacts/calendar syncing
2
Skin-ing Notes Design elemens
14
Add some views into the "Views" section of the Notes 8.5 mailbox






IdeaJam developed by

Elguji Software Logo