Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
timeformat Question
#2
function below will get the first day of the current month and the weekday and output it as a string

Function FirstDayOfMonthAndWeekday 
Code:
Copy      Help
SYSTEMTIME st
GetSystemTime(&st)
DateTime dt1
sub.GetFirstDayOfaMonth(st.wYear st.wMonth dt1)
out dt1.ToStrFormat("{dddd} {D}")

#sub GetFirstDayOfaMonth
function year month DateTime&dt
int day=1
dt.FromParts(year month day)
ret


Messages In This Thread
timeformat Question - by BJ - 11-27-2018, 05:40 PM
RE: timeformat Question - by Kevin - 11-27-2018, 10:45 PM
RE: timeformat Question - by BJ - 11-28-2018, 02:57 AM
RE: timeformat Question - by Kevin - 11-28-2018, 03:38 AM
RE: timeformat Question - by BJ - 11-28-2018, 04:25 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)