Print Page | Close Window

Formatting date and time

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=5695
Printed Date: 09 November 2024 at 12:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Formatting date and time
Posted By: joe12
Subject: Formatting date and time
Date Posted: 05 December 2006 at 2:14pm
Is this me or we cannot format the day and month part of a date without the preceding zero (i.e. January = '01' and can always be '1'). It is the same with hour, minute and second of the time. Maybe for the next release? ;-)



Replies:
Posted By: sserge
Date Posted: 14 December 2006 at 6:17am
To remove leading zero inset # after %.
Example: %#d
 
See Also help for strftime: http://msdn2.microsoft.com/en-us/library/fe06s4ak%28VS.80%29.aspx - http://msdn2.microsoft.com/en-us/library/fe06s4ak(VS.80).aspx

--
WBR,
Serge



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net