FreeBASIC  0.91.0
time_datevalue.c
Go to the documentation of this file.
1 /* datevalue function */
2 
3 #include "fb.h"
4 
5 /*:::::*/
7 {
8  int year;
9  int month;
10  int day;
11  int succeeded = fb_DateParse( s, &day, &month, &year );
12 
13  fb_hStrDelTemp( s );
14 
15  if( !succeeded ) {
17  return 0;
18  }
19 
21 
22  return fb_DateSerial( year, month, day );
23 }
24